On OS X, utimes can be used to set birthtime but this is a no-op on Windows, since libuv's fs code for Windows just sets NULL for Creation Time in the SetFileTime call.
The real issue is that there is no proper way to set the birthtime on Windows or OS X or on Linux systems which support it.
Would it be okay to add something like fs.utimes2(path, btime, atime, mtime, callback)?
On OS X, utimes can be used to set birthtime but this is a no-op on Windows, since libuv's fs code for Windows just sets NULL for Creation Time in the SetFileTime call.
The real issue is that there is no proper way to set the birthtime on Windows or OS X or on Linux systems which support it.
Would it be okay to add something like fs.utimes2(path, btime, atime, mtime, callback)?