Skip to content

epath.Path.touch() does not update mtime #629

@ayaka14732

Description

@ayaka14732

The documentation of pathlib.Path.touch:

Create a file at this given path. If mode is given, it is combined with the process’ umask value to determine the file mode and access flags. If the file already exists, the function succeeds if exist_ok is true (and its modification time is updated to the current time), otherwise FileExistsError is raised.

According to this documentation, touch() should update the file's modification time to the current time. However, epath.Path.touch() does not match this behaviour.

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