tschaub / mock-fs

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

fix: fix bug on utimes, futimes, add support of lutimes #366

Closed 3cp closed 1 year ago

3cp commented 1 year ago

lutimes is available on Nodejs v14.5.0+ and v12.19.0, our CI matrix covers both versions.

closes #365

3cp commented 1 year ago

The existing utimes has a bug that didn't follow symlink. Added a method getFilepath(item) to get back file path from an item. This feature is to support futimes dereferencing symlink.

3cp commented 1 year ago

I will fix the win32 file path issue in few days.

3cp commented 1 year ago

@tschaub this one is ready for review.