src/filesystem/impls/appshell/node/FileWatcherManager.js
function _unwatchPath(path) {
    var watcher = _watcherMap[path];

    if (watcher) {
        try {
            watcher.close();
        } catch (err) {
            console.warn("Failed to unwatch file " + path + ": " + (err && err.message));
        } finally {
            delete _watcherMap[path];
        }
    }
}
function _unwatchPath(path) {
    var watcher = _watcherMap[path];

    if (watcher) {
        try {
            watcher.close();
        } catch (err) {
            console.warn("Failed to unwatch file " + path + ": " + (err && err.message));
        } finally {
            delete _watcherMap[path];
        }
    }
}
function _unwatchPath ( path ) { var watcher = _watcherMap [ path ] ; if ( watcher ) { try { watcher . close ( ) ; } catch ( err ) { console . warn ( "Failed to unwatch file " + path + ": " + ( err && err . message ) ) ; } finally { delete _watcherMap [ path ] ; } } }
Un-watch a file or directory.
@private
@param {string} path File or directory to unwatch.
Un - watch a file or directory .