FileSystemModule.listEntriesSync(path) Method (JS)
Synchronously lists both files and subdirectories in a directory.
Example
var FileSystem = require("FuseJS/FileSystem");
var entries = FileSystem.listEntriesSync(FileSystem.dataDirectory);
console.log("There are " + entries.length + " entries in directory");
Location
- Namespace
- Fuse.FileSystem
- Package
- Fuse.FileSystem 2.9.1
Returns
Array
Array of subdirectories and files in the directory