tschaub / mock-fs

Configurable mock for the fs module
https://npmjs.org/package/mock-fs
Other
906 stars 86 forks source link

`lutimes` not supported? #365

Closed steilerDev closed 1 year ago

steilerDev commented 1 year ago

I'm currently testing an app using mock-fs. This app uses fs.promises.lutimes and fs.lutimesSync to change the timestamp of symbolic links generated. Is it possible, that mockfs is not supporting this function (as lutimes throws a 'file not found' error, when using mock-fs, however I could not find any mention of this anywhere in this repo)

Thanks!

3cp commented 1 year ago

I see lutimes was added in: nodejs v14.5.0, v12.19.0. It should be possible to add the support.

3cp commented 1 year ago

While working on this, also discovered that our utimes implementation has a bug, it should follow symlink but it doesn't.