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

Switch to st_birthtime for Python 3.12 and later on Windows #764

Closed
joachimmetz opened this issue Apr 3, 2024 · 0 comments · Fixed by #765
Closed

Switch to st_birthtime for Python 3.12 and later on Windows #764

joachimmetz opened this issue Apr 3, 2024 · 0 comments · Fixed by #765
Assignees
Labels
code health Non-functional changes to improve code health

Comments

@joachimmetz
Copy link
Member

Per https://docs.python.org/3/library/os.html#os.stat

Changed in version 3.12: On Windows, st_ctime is deprecated. Eventually, it will contain the last metadata change time, for consistency with other platforms, but for now still contains creation time. Use st_birthtime for the creation time.

@joachimmetz joachimmetz added the code health Non-functional changes to improve code health label Apr 3, 2024
@joachimmetz joachimmetz self-assigned this Apr 3, 2024
joachimmetz added a commit to joachimmetz/dfvfs that referenced this issue Apr 7, 2024
joachimmetz added a commit to joachimmetz/dfvfs that referenced this issue Apr 7, 2024
@joachimmetz joachimmetz linked a pull request Apr 7, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code health Non-functional changes to improve code health
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant