Optional Metadata/Attributes
Can be literally anything. aspen does not use this data in any way or shape.
This object will set initial metadata.
Additional metadata can be added using FileEntry#addMetadata (existing metadata can be updated using same method).
You can get the value of key using FileEntry#getMetadata. And can be removed using FileEntry#removeMetadata
You can use Root#onDidChangeMetadata hook to get notified whenever a FileEntry's metadata is changed, added or removed.
Examples:
ctime, mtime, size, you name itName of the file or directory
If a path is given, it'll work fine as the basename will be extracted automatically
Type of file
Avoid hardcoding the numerical value, instead, use the FileType enum to select either File or Directory
Generated using TypeDoc
A 'raw' minimal description of file or directory
This will be converted to either
FileEntryorDirectoryobjectIt does not need to be serializable