Example #1
0
File: fs.js Project: PostPCEra/node
fs.utimes = function(path, atime, mtime, callback) {
  binding.utimes(pathModule._makeLong(path),
                 toUnixTimestamp(atime),
                 toUnixTimestamp(mtime),
                 makeCallback(callback));
};
Example #2
0
File: fs.js Project: 337240552/node
fs.link = function(srcpath, dstpath, callback) {
  binding.link(pathModule._makeLong(srcpath),
               pathModule._makeLong(dstpath),
               callback || noop);
};
Example #3
0
File: fs.js Project: 337240552/node
fs.unlink = function(path, callback) {
  binding.unlink(pathModule._makeLong(path), callback || noop);
};
Example #4
0
File: fs.js Project: 337240552/node
fs.readdirSync = function(path) {
  return binding.readdir(pathModule._makeLong(path));
};
Example #5
0
File: fs.js Project: 337240552/node
fs.statSync = function(path) {
  return binding.stat(pathModule._makeLong(path));
};
Example #6
0
File: fs.js Project: 337240552/node
fs.renameSync = function(oldPath, newPath) {
  return binding.rename(pathModule._makeLong(oldPath),
                        pathModule._makeLong(newPath));
};
Example #7
0
File: fs.js Project: 337240552/node
fs.mkdirSync = function(path, mode) {
  return binding.mkdir(pathModule._makeLong(path),
                       modeNum(mode, 511 /*=0777*/));
};
Example #8
0
File: fs.js Project: Bazzinga/node
fs.unlink = function(path, callback) {
  callback = makeCallback(callback);
  if (!nullCheck(path, callback)) return;
  binding.unlink(pathModule._makeLong(path), callback);
};
Example #9
0
File: fs.js Project: Bazzinga/node
fs.chown = function(path, uid, gid, callback) {
  callback = makeCallback(callback);
  if (!nullCheck(path, callback)) return;
  binding.chown(pathModule._makeLong(path), uid, gid, callback);
};
Example #10
0
File: fs.js Project: Bazzinga/node
fs.statSync = function(path) {
  nullCheck(path);
  return binding.stat(pathModule._makeLong(path));
};
Example #11
0
File: fs.js Project: Bazzinga/node
fs.readlinkSync = function(path) {
  nullCheck(path);
  return binding.readlink(pathModule._makeLong(path));
};
Example #12
0
File: fs.js Project: Bazzinga/node
fs.rmdirSync = function(path) {
  nullCheck(path);
  return binding.rmdir(pathModule._makeLong(path));
};
Example #13
0
Module._extensions['.node'] = function(module, filename) {
  return process.dlopen(module, path._makeLong(filename));
};
Example #14
0
File: fs.js Project: PostPCEra/node
fs.exists = function(path, callback) {
  binding.stat(pathModule._makeLong(path), function(err, stats) {
    if (callback) callback(err ? false : true);
  });
};
Example #15
0
File: fs.js Project: 337240552/node
fs.openSync = function(path, flags, mode) {
  mode = modeNum(mode, 438 /*=0666*/);
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
};
Example #16
0
fs.chmod = function(path, mode, callback) {
  binding.chmod(pathModule._makeLong(path), modeNum(mode), callback || noop);
};
Example #17
0
File: fs.js Project: 337240552/node
fs.rename = function(oldPath, newPath, callback) {
  binding.rename(pathModule._makeLong(oldPath),
                 pathModule._makeLong(newPath),
                 callback || noop);
};
Example #18
0
fs.chmodSync = function(path, mode) {
  return binding.chmod(pathModule._makeLong(path), modeNum(mode));
};
Example #19
0
File: fs.js Project: 337240552/node
fs.mkdir = function(path, mode, callback) {
  if (typeof mode === 'function') callback = mode;
  binding.mkdir(pathModule._makeLong(path), modeNum(mode, 511 /*=0777*/),
                callback || noop);
};
Example #20
0
fs.chown = function(path, uid, gid, callback) {
  binding.chown(pathModule._makeLong(path), uid, gid, callback || noop);
};
Example #21
0
File: fs.js Project: 337240552/node
fs.readdir = function(path, callback) {
  binding.readdir(pathModule._makeLong(path), callback || noop);
};
Example #22
0
fs.chownSync = function(path, uid, gid) {
  return binding.chown(pathModule._makeLong(path), uid, gid);
};
Example #23
0
File: fs.js Project: 337240552/node
fs.stat = function(path, callback) {
  binding.stat(pathModule._makeLong(path), callback || noop);
};
Example #24
0
fs.utimes = function(path, atime, mtime, callback) {
  atime = toUnixTimestamp(atime);
  mtime = toUnixTimestamp(mtime);
  binding.utimes(pathModule._makeLong(path), atime, mtime, callback || noop);
};
Example #25
0
File: fs.js Project: 337240552/node
fs.symlinkSync = function(destination, path, type) {
  return binding.symlink(pathModule._makeLong(destination),
                         pathModule._makeLong(path), type);
};
Example #26
0
fs.utimesSync = function(path, atime, mtime) {
  atime = toUnixTimestamp(atime);
  mtime = toUnixTimestamp(mtime);
  binding.utimes(pathModule._makeLong(path), atime, mtime);
};
Example #27
0
File: fs.js Project: 337240552/node
fs.linkSync = function(srcpath, dstpath) {
  return binding.link(pathModule._makeLong(srcpath),
                      pathModule._makeLong(dstpath));
};
Example #28
0
StatWatcher.prototype.start = function(filename, persistent, interval) {
  this._handle.start(pathModule._makeLong(filename), persistent, interval);
};
Example #29
0
File: fs.js Project: 337240552/node
fs.unlinkSync = function(path) {
  return binding.unlink(pathModule._makeLong(path));
};
Example #30
0
File: fs.js Project: PostPCEra/node
fs.chown = function(path, uid, gid, callback) {
  binding.chown(pathModule._makeLong(path), uid, gid, makeCallback(callback));
};