borgbackup/borg

windows: birthtime and ctime

Aberta

#8.730 aberto em 9 de abr. de 2025

 (2 comentários) (0 reação) (0 responsável)Python (732 forks)batch import
help wantedos: windows

Métricas do repositório

Stars
 (10.086 estrelas)
Métricas de merge de PR
 (Mesclagem média 5d 12h) (91 fundiu PRs em 30d)

Description

From: https://docs.python.org/3.12/library/os.html

""" Changed in version 3.12: st_birthtime[_ns] is now available on Windows. """

""" Changed in version 3.12: The st_ctime attribute of a stat result is deprecated on Windows. The file creation time is properly available as st_birthtime, and in the future st_ctime may be changed to return zero or the metadata change time, if available. """

""" Changed in version 3.12: st_ctime_ns is deprecated on Windows. Use st_birthtime_ns for the file creation time. In the future, st_ctime will contain the time of the most recent metadata change, as for other platforms. """

""" 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. """

These are nice consistency changes with the goal of making windows timestamp semantics closer to posix OSes like linux.

Guia do colaborador