How to use the path._makeLong function in path

To help you get started, we’ve selected a few path examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github balena-io / node-lkl / lib / fs.js View on Github external
fs.lstatSync = function(path) {
  nullCheck(path);
  return binding.lstat(pathModule._makeLong(path));
};
github codius-deprecated / codius-nacl-node / src / js / fs.js View on Github external
fs.symlink = function(destination, path, type_, callback) {
  var type = (util.isString(type_) ? type_ : null);
  var callback = makeCallback(arguments[arguments.length - 1]);
  return callback(new Error('TODO-CODIUS: Not implemented!'));

  if (!nullCheck(destination, callback)) return;
  if (!nullCheck(path, callback)) return;

  binding.symlink(preprocessSymlinkDestination(destination, type),
                  pathModule._makeLong(path),
                  type,
                  callback);
};
github apigee / trireme / node12 / node12src / src / main / javascript / io / apigee / trireme / node12 / node / fs.js View on Github external
fs.chownSync = function(path, uid, gid) {
  nullCheck(path);
  return binding.chown(pathModule._makeLong(path), uid, gid);
};
github pmq20 / node-packer / vendor / node-v6.9.1 / lib / module.js View on Github external
function readPackage(requestPath) {
  if (hasOwnProperty(packageMainCache, requestPath)) {
    return packageMainCache[requestPath];
  }

  const jsonPath = (-1 === requestPath.indexOf('__enclose_io_memfs__')) ? 
                   path.resolve(requestPath, 'package.json') :
                   path.join(requestPath, 'package.json');
  const json = (-1 === requestPath.indexOf('__enclose_io_memfs__')) ? 
               internalModuleReadFile(path._makeLong(jsonPath)) : 
               process.binding('natives').__enclose_io_memfs_get__(jsonPath);

  if (json === undefined) {
    return false;
  }

  try {
    var pkg = packageMainCache[requestPath] = JSON.parse(json).main;
  } catch (e) {
    e.path = jsonPath;
    e.message = 'Error parsing ' + jsonPath + ': ' + e.message;
    throw e;
  }
  return pkg;
}
github mceSystems / node-jsc / lib / module.js View on Github external
function stat(filename) {
  filename = path._makeLong(filename);
  const cache = stat.cache;
  if (cache !== null) {
    const result = cache.get(filename);
    if (result !== undefined) return result;
  }
  const result = internalModuleStat(filename);
  if (cache !== null) cache.set(filename, result);
  return result;
}
stat.cache = null;
github pmq20 / node-packer / vendor / node-v7.1.0 / lib / fs.js View on Github external
fs.accessSync = function(path, mode) {
  nullCheck(path);

  if (mode === undefined)
    mode = fs.F_OK;
  else
    mode = mode | 0;

  binding.access(pathModule._makeLong(path), mode);
};
github pmq20 / node-packer / vendor / node-v6.9.1 / lib / fs.js View on Github external
fs.symlinkSync = function(target, path, type) {
  type = (typeof type === 'string' ? type : null);

  nullCheck(target);
  nullCheck(path);

  return binding.symlink(preprocessSymlinkDestination(target, type, path),
                         pathModule._makeLong(path),
                         type);
};
github zeit / pkg / prelude / bootstrap.js View on Github external
function makeLong (f) {
    return require('path')._makeLong(f);
  }
github GPBeta / nc.js / src / native / fs.js View on Github external
fs.renameSync = function(oldPath, newPath) {
  nullCheck(oldPath);
  nullCheck(newPath);
  return binding.rename(pathModule._makeLong(oldPath),
                        pathModule._makeLong(newPath));
};
github apigee / trireme / node10 / node10src / src / main / javascript / io / apigee / trireme / node10 / node / fs.js View on Github external
fs.chown = function(path, uid, gid, callback) {
  callback = makeCallback(callback);
  if (!nullCheck(path, callback)) return;
  binding.chown(pathModule._makeLong(path), uid, gid, callback);
};