lib/cache.js
function cleanup_manta(_cb) {
        self.manta.unlink(manta.path(p, true), function (m_err) {
            if (m_err) {
                // An ENOENT is ok since that means the file doesn't
                // exist in manta. This can happen if we create and delete a
                // file before we ever write it back.
                if (m_err.code === 'ENOENT') {
                    log.trace('del(%s): done', p);
                    _cb(null);
                } else {
                    if (m_err.code === 'ENOTEMPTY') {
                        log.info('del(%s): directory not empty', p);
                    } else {
                        log.error(m_err, 'del(%s): failed', p);
                    }
                    _cb(m_err);
                }
            } else {
                log.trace('del(%s): done', p);
                _cb(null);
            }
        });
    }
function cleanup_manta(_cb) {
        self.manta.unlink(manta.path(p, true), function (m_err) {
            if (m_err) {
                // An ENOENT is ok since that means the file doesn't
                // exist in manta. This can happen if we create and delete a
                // file before we ever write it back.
                if (m_err.code === 'ENOENT') {
                    log.trace('del(%s): done', p);
                    _cb(null);
                } else {
                    if (m_err.code === 'ENOTEMPTY') {
                        log.info('del(%s): directory not empty', p);
                    } else {
                        log.error(m_err, 'del(%s): failed', p);
                    }
                    _cb(m_err);
                }
            } else {
                log.trace('del(%s): done', p);
                _cb(null);
            }
        });
    }
function cleanup_manta ( _cb ) { self . manta . unlink ( manta . path ( p , true ) , function ( m_err ) { if ( m_err ) { // An ENOENT is ok since that means the file doesn't // exist in manta. This can happen if we create and delete a // file before we ever write it back. if ( m_err . code === 'ENOENT' ) { log . trace ( 'del(%s): done' , p ) ; _cb ( null ) ; } else { if ( m_err . code === 'ENOTEMPTY' ) { log . info ( 'del(%s): directory not empty' , p ) ; } else { log . error ( m_err , 'del(%s): failed' , p ) ; } _cb ( m_err ) ; } } else { log . trace ( 'del(%s): done' , p ) ; _cb ( null ) ; } } ) ; }
remove from manta
remove from manta