Tutorial: Work with Network File System

Work with Network File System

Start scanning to find all available servers:

stbNfs.findServers(function ( error, data ) {
    if ( error ) {
        throw new Error(error);
    }

    console.log('find servers data:', data);
});

Start scanning to find all available exports on the given server:

stbNfs.findShares(ip, function ( error, data ) {
    if ( error ) {
        throw new Error(error);
    }

    console.log('find shares data:', data);
});