Skip to content

fs.utimes does not change birthtime on Windows #2600

@jorangreef

Description

@jorangreef

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)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockedPRs that are blocked by other issues or PRs.fsIssues and PRs related to the fs subsystem / file system.windowsIssues and PRs related to the Windows platform.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions