Take a look at how Adobe??™s C-level extension DWfile is used. DWfile has 14 main functions:
n copy()??”Copies a file from one file URL (the first argument) to another (the second argument).
DWfile.copy() can be used to copy any type of file, not just text files.
n createFolder()??”Creates a folder, given a file URL.
n listFolder()??”Lists the contents of a specified folder in an array. This function takes two
arguments: the file URL of the desired folder (required) and a keyword, either ???files??? (which
returns just filenames) or ???directories??? (which returns just directory names). If the keyword
argument is not used, you get both files and directories.
n exists()??”Checks to see if a specified filename exists. This function takes one argument, the
filename.
n getAttributes()??”Returns the attributes of a specified file or folder. Possible attributes are R
(read-only), D (directory), H (hidden), and S (system file or folder).
n setAttributes()??”Sets the attributes of a specified file.
n getCreationDate()??”Returns the date when the file was initially created.
n getCreationDateObj()??”Returns the JavaScript object that represents the date when the file
was initially created.
n getModificationDate()??”Returns the date a specified file or folder was last modified.
Pages:
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777