Synchronously gets info about a directory.

The returned object has the following properties:

  • exists - A boolean value stating whether the directory exists
  • lastWriteTime - A Date stating when directory was last changed
  • lastAccessTime - A Date 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.