src/filesystem/impls/appshell/AppshellFileSystem.js
function _fileWatcherChange(evt, event, parentDirPath, entryName, statsObj) {
        var change;
        switch (event) {
        case "changed":
            // an existing file/directory was modified; stats are passed if available
            var fsStats;
            if (statsObj) {
                fsStats = new FileSystemStats(statsObj);
            } else {
                console.warn("FileWatcherDomain was expected to deliver stats for changed event!");
            }
            _enqueueChange(parentDirPath + entryName, fsStats);
            break;
        case "created":
        case "deleted":
            // file/directory was created/deleted; fire change on parent to reload contents
            _enqueueChange(parentDirPath, null);
            break;
        default:
            console.error("Unexpected 'change' event:", event);
        }
    }
function _fileWatcherChange(evt, event, parentDirPath, entryName, statsObj) {
        var change;
        switch (event) {
        case "changed":
            // an existing file/directory was modified; stats are passed if available
            var fsStats;
            if (statsObj) {
                fsStats = new FileSystemStats(statsObj);
            } else {
                console.warn("FileWatcherDomain was expected to deliver stats for changed event!");
            }
            _enqueueChange(parentDirPath + entryName, fsStats);
            break;
        case "created":
        case "deleted":
            // file/directory was created/deleted; fire change on parent to reload contents
            _enqueueChange(parentDirPath, null);
            break;
        default:
            console.error("Unexpected 'change' event:", event);
        }
    }
function _fileWatcherChange ( evt , event , parentDirPath , entryName , statsObj ) { var change ; switch ( event ) { case "changed" : // an existing file/directory was modified; stats are passed if available var fsStats ; if ( statsObj ) { fsStats = new FileSystemStats ( statsObj ) ; } else { console . warn ( "FileWatcherDomain was expected to deliver stats for changed event!" ) ; } _enqueueChange ( parentDirPath + entryName , fsStats ) ; break ; case "created" : case "deleted" : // file/directory was created/deleted; fire change on parent to reload contents _enqueueChange ( parentDirPath , null ) ; break ; default : console . error ( "Unexpected 'change' event:" , event ) ; } }
Event handler for the Node fileWatcher domain's change event.

@param {jQuery.Event} The underlying change event
@param {string} event The type of the event: "changed", "created" or "deleted"
@param {string} parentDirPath The path to the directory holding entry that has changed
@param {string=} entryName The name of the file/directory that has changed
@param {object} statsObj Object that can be used to construct FileSystemStats
@private
Event handler for the Node fileWatcher domain s change event .