Synchronously gets info about a file.
The returned object has the following properties:
exists– a boolean value stating whether file exists
Datestating when file was last changed
Datestating when file was accessed
var FileSystem = require("FuseJS/FileSystem"); FileSystem.writeTextToFileSync("some-file.txt", "hello there"); var fileInfo = FileSystem.getFileInfoSync("some-file.txt"); console.log("file was modified on " + fileInfo.lastWriteTime);
- Fuse.FileSystem 1.11.2
An object containing info about the file.