Nóta
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as shíniú isteach nó eolairí a athrú.
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as eolairí a athrú.
Summary
Directory objects represent and manipulate directories on the file system.
Object Methods
| Name | Return Type | Signature | Description |
|---|---|---|---|
| CreateFile | file | CreateFile(relativePath, [disposition]) | Creates a file within the directory with the given disposition. Disposition may be one of "OpenExisting", "CreateNew", or "CreateAlways". |
| CreateSubDirectory | directory | CreateSubDirectory(name) | Creates a new subdirectory within the directory. |
| Delete | Delete() | Deletes the subdirectory if it is empty. | |
| OpenFile | file | OpenFile(relativePath) | Opens an existing file for reading from the directory. |
Object Properties
| Name | Description |
|---|---|
| Files | A collection of file within the directory. |
| SubDirectories | A collection of directory within the directory. |