Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

add fs.lutimes binding #2142

Closed
isaacs opened this issue Nov 18, 2011 · 4 comments
Closed

add fs.lutimes binding #2142

isaacs opened this issue Nov 18, 2011 · 4 comments

Comments

@isaacs
Copy link

isaacs commented Nov 18, 2011

Seems oddly missing, since we have the f and l versions of most other fs functions.

@chirag04
Copy link

@joliss
Copy link

joliss commented Apr 5, 2014

I'd like to second this.

A workaround like the polyfill above ...

var fd = fs.openSync('node-utimes.js', constants.O_SYMLINK)
fs.futimesSync(fd, atime, mtime)
fs.close(fd)

... does not work on Linux because Linux doesn't have O_SYMLINK.

So unless fs.lutimes is added, there is no cross-platform way that I can see to set the times of a symlink.

@indutny indutny added this to the v0.13 milestone Apr 12, 2014
@indutny
Copy link
Member

indutny commented Apr 12, 2014

Set milestone to v0.13

@jasnell
Copy link
Member

jasnell commented Jun 22, 2015

@indutny ... any further thoughts on this one?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants