FileSystemModule.getDirectoryInfoSync(path) Method (JS)
Synchronously gets info about a directory.
The returned object has the following properties:
exists
- A boolean value stating whether the directory existslastWriteTime
- ADate
stating when directory was last changedlastAccessTime
- ADate
stating when directory was accessed
Example
var FileSystem = require("FuseJS/FileSystem");
FileSystem.createDirectorySync("some-dir");
var dirInfo = FileSystem.getDirectoryInfoSync("some-dir");
console.log("file was modified on " + dirInfo.lastWriteTime);
Location
- Namespace
- Fuse.FileSystem
- Package
- Fuse.FileSystem 2.9.1
Returns
Object
An object containing info about the directory.