Asynchronously lists both files and subdirectories in a directory.

Example

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

FileSystem.listEntries(FileSystem.dataDirectory)
    .then(function(entries) {
        console.log("There are " + entries.length + " entries in directory")
    }, function(error) {
        console.log("Unable to list entries in directory due to error " + error);
    });

Location

Namespace
Fuse.FileSystem
Package
Fuse.FileSystem 1.9.0

Returns

Promise

Array of subdirectories and files of directory