lib/api.js
function (done) {
            fs.readdir(globalConfig.root, function (err, files) {
                if (err) return callback(err)
                async.map(files, function (f, next) {
                    if (f !== 'apps' && f !== 'repos') {
                        f = globalConfig.root + '/' + f
                        pruned.push(f)
                        removeFile(f, next)
                    } else {
                        next()
                    }
                }, done)
            })
        }
function (done) {
            fs.readdir(globalConfig.root, function (err, files) {
                if (err) return callback(err)
                async.map(files, function (f, next) {
                    if (f !== 'apps' && f !== 'repos') {
                        f = globalConfig.root + '/' + f
                        pruned.push(f)
                        removeFile(f, next)
                    } else {
                        next()
                    }
                }, done)
            })
        }
function ( done ) { fs . readdir ( globalConfig . root , function ( err , files ) { if ( err ) return callback ( err ) async . map ( files , function ( f , next ) { if ( f !== 'apps' && f !== 'repos' ) { f = globalConfig . root + '/' + f pruned . push ( f ) removeFile ( f , next ) } else { next ( ) } } , done ) } ) }
clean root dir
clean root dir