lib/fs-utils.js
function removeAttr(fs, pathOrFd, attr, isFd, callback) {
  var removeFn = 'fremovexattr';

  if(isFd !== true) {
    callback = isFd;
    removeFn = 'removexattr';
  }

  fs[removeFn](pathOrFd, attr, function(err) {
    if(err && err.code !== 'ENOATTR') {
      return callback(err);
    }

    callback();
  });
}
function removeAttr(fs, pathOrFd, attr, isFd, callback) {
  var removeFn = 'fremovexattr';

  if(isFd !== true) {
    callback = isFd;
    removeFn = 'removexattr';
  }

  fs[removeFn](pathOrFd, attr, function(err) {
    if(err && err.code !== 'ENOATTR') {
      return callback(err);
    }

    callback();
  });
}
function removeAttr ( fs , pathOrFd , attr , isFd , callback ) { var removeFn = 'fremovexattr' ; if ( isFd !== true ) { callback = isFd ; removeFn = 'removexattr' ; } fs [ removeFn ] ( pathOrFd , attr , function ( err ) { if ( err && err . code !== 'ENOATTR' ) { return callback ( err ) ; } callback ( ) ; } ) ; }
Remove the metadata from a path or file descriptor
Remove the metadata from a path or file descriptor