Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Tracked by #21822
ayaka14732 opened this issue Jun 12, 2024 · 0 comments
Open
Tracked by #21822

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

ayaka14732 opened this issue Jun 12, 2024 · 0 comments

Comments

@ayaka14732
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant