dist/fs-extra.js
// parent and stops once it reaches the src parent or the root path.
parent and stops once it reaches the src parent or the root path.
parent and stops once it reaches the src parent or the root path .
function checkParentPaths(src, srcStat, dest, funcName, cb) {
      const srcParent = path$1.resolve(path$1.dirname(src));
      const destParent = path$1.resolve(path$1.dirname(dest));
      if (destParent === srcParent || destParent === path$1.parse(destParent).root) return cb();
      const callback = (err, destStat) => {
        if (err) {
          if (err.code === 'ENOENT') return cb();
          return cb(err);
        }
        if (areIdentical(srcStat, destStat)) {
          return cb(new Error(errMsg(src, dest, funcName)));
        }
        return checkParentPaths(src, srcStat, destParent, funcName, cb);
      };
      fs_1.stat(destParent, callback);
    }
function checkParentPaths ( src , srcStat , dest , funcName , cb ) { const srcParent = path$1 . resolve ( path$1 . dirname ( src ) ) ; const destParent = path$1 . resolve ( path$1 . dirname ( dest ) ) ; if ( destParent === srcParent || destParent === path$1 . parse ( destParent ) . root ) return cb ( ) ; const callback = ( err , destStat ) => { if ( err ) { if ( err . code === 'ENOENT' ) return cb ( ) ; return cb ( err ) ; } if ( areIdentical ( srcStat , destStat ) ) { return cb ( new Error ( errMsg ( src , dest , funcName ) ) ) ; } return checkParentPaths ( src , srcStat , destParent , funcName , cb ) ; } ; fs_1 . stat ( destParent , callback ) ; }
parent and stops once it reaches the src parent or the root path.
parent and stops once it reaches the src parent or the root path .