Directory object
Property | Description | Access | Type |
---|---|---|---|
Directory.name | Get the Directory name | readonly | string |
Directory.fullpath | Get the Directory fullpath | readonly | string |
Directory.parent | Get the parent directory | readonly | Directory |
Directory.exists | Check if the Directory exists | readonly | boolean |
Directory.isempty | Check if the Directory is empty | readonly | boolean |
Directory.hidden | Check if directory is hidden | readwrite | boolean |
Directory.created | Get/set the Directory creation date and time | readwrite | Datetime |
Directory.modified | Get/set last time the Directory was accessed | readwrite | Datetime |
Directory.accessed | Get/set last time the Directory was accessed | readwrite | Datetime |
Operation | Description |
---|---|
Directory iteration | Iterate over the Directory |
Method | Description | Return value |
---|---|---|
Directory.constructor() | Directory object constructor | Directory |
Directory:make() | Create the directory physically on the disk | boolean |
Directory:remove() | Delete the Directory from the disk | boolean |
Directory:removeall() | Delete the Directory with all its content | boolean |
Directory:move() | Move the Directory to another location | boolean |
Directory:list() | Iterate over a Directory using a filter | function |
Directory:copy() | Copy a Directory to a new one | boolean |
Directory:copytask() | Copy a Directory to a new one asynchronously | Task |