Skip to content

Instantly share code, notes, and snippets.

@FrankGrimm
Created November 28, 2011 21:44
Show Gist options
  • Save FrankGrimm/1402220 to your computer and use it in GitHub Desktop.
Save FrankGrimm/1402220 to your computer and use it in GitHub Desktop.
// lutimes
var constants = require("constants")
if (!fs.lutimes) fs.lutimes = function (path, at, mt, cb) {
constants.O_SYMLINK = 0x200000;
fs.open(path, constants.O_SYMLINK, function (er, fd) {
cb = cb || noop
if (er) return cb(er)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment