Folder related methods
Members
-
staticDuFolder.userDataFolder
-
The default user data folder.
Replaces the Folder.userData provided by ESTK which does not work properly with mac network sessions.
In windows, the value of %APPDATA% ("C:\Documents and Settings\username\Application Data")
In Mac OS, "~/Library/Application Support"
Methods
-
staticDuFolder.canRead(folder){bool}
D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 5412 -
Tests if a folder can be read
Name Type Description folder
Folder | string The folder Returns:
Type Description bool -
staticDuFolder.canWrite(folder){bool}
D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 5439 -
Tests if a folder can be written
Name Type Description folder
Folder | string The folder Returns:
Type Description bool -
staticDuFolder.getFiles(folder, filter){Array}
D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 5388 -
Recursively gets all files in a folder using a name filter Returns an array of File objects.
Name Type Default Description folder
Folder The Folder filter
string | function "*" optional A search mask for file names, specified as a string or a function. A mask string can contain question mark (?) and asterisk (*) wild cards. Default is "*", which matches all file names. Can also be the name of a function that takes a File or Folder object as its argument. It is called for each file or folder found in the search; if it returns true, the object is added to the return array. Returns:
Type Description Array The files found. -
staticDuFolder.wipeFolder(folder)
D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 5363 -
Recursively remove all content from folder and the folder itself. Warning, this does not move files to the recycle bin and can not be undone.
Name Type Description folder
string | Folder the path or Folder object to wipe.