fs

Filesystem access.

fs.readDir( ".", function( err, entries ) {
        console.log( JSON.stringify( entries ) ); } );

readDir(dir, fn) (static)

Read the content of a directory.

Arguments:
dir (String)

Directory relative to the 'start' point (for frontend: the nml file, for server this is the js file on the commandline

fn (Function)

The function to be called

err (Integer)

error

entry (Object)

Object describing the file listing

name (String)

The filename


Caught a mistake or want to contribute to the documentation? Edit this page on GitHub!