Instances of OS.File.DirectoryIterator.Entry represent file information that has been collected by traversing the directory holding the file. Due to differences between operating systems, the information available depends on the platform.
Instances of OS.File.DirectoryIterator.Entry are obtained by:
- iterating through a directory through the main thread API; or
- iterating through a directory through the worker thread API.
Instances of OS.File.DirectoryIterator.Entry
Cross-platform attributes
isDir | boolean, read-only | true if the entry is a directory, false otherwise |
isSymLink | boolean, read-only | true if the entry is a symbolic link, false otherwise |
name | string, read-only | the name of the entry |
path | string, read-only | the full path to the entry |
Platform-specific attributes (Windows)
winLastAccessDate | Date, read-only | The date at which this file was last accessed. |
winCreationDate | Date, read-only | The date at which this file was created. |
winLastWriteDate | Date, read-only | The date at which this file was last modified. |
Screenshot of console.log on objects on Mac (10.10.1), Windows (8.1), Linux (Ubuntu)