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 2.9.1

Returns

Array

Array of filenames in the directory