Synchronously list files in directory.

Example

var FileSystem = require("FuseJS/FileSystem");

var files = FileSystem.listFilesSync(FileSystem.dataDirectory);
console.log("There are " + files.length + " files in directory");

Location

Namespace
Fuse.FileSystem
Package
Fuse.FileSystem 1.11.2

Returns

Array

Array of filenames in the directory