tauri/cli/tauri.js/api/fs/dir.js
Lucas Fernandes Nogueira b2e28f39fe
feat(tauri) add path API (#513)
* feat(tauri) extend file system API

* chore(deps) pin web-view deps

* feat(tauri) add path API

* feat(tauri.js) add Dir definition and usage

* fix(tauri) correctly determine app_name

* feat(example) add Dir select to the communication example

* chore(tauri) wrap comment line

* fix(tauri) build works
2020-03-17 07:42:59 -03:00

31 lines
358 B
JavaScript

/**
* @typedef {number} BaseDirectory
*/
/**
* @enum {BaseDirectory}
*/
const Dir = {
Audio: 1,
Cache: 2,
Config: 3,
Data: 4,
LocalData: 5,
Desktop: 6,
Document: 7,
Download: 8,
Executable: 9,
Font: 10,
Home: 11,
Picture: 12,
Public: 13,
Runtime: 14,
Template: 15,
Video: 16,
Resource: 17,
App: 18
}
export {
Dir
}