Skip to content

Support leaving times unchanged in fs__utime #4665

@hoodmane

Description

@hoodmane

There should be some way to set only the modifcation time and not the access time with fs__utime. I'm not sure what the API should look like. For unix, we can set the nanosecond value to UTIME_OMIT. For windows:

If the application does not need to change this information, set this parameter either to NULL or to a pointer to a FILETIME structure that has both the dwLowDateTime and dwHighDateTime members set to 0.

https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-setfiletime

cc @cjihrig @bnoordhuis

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions