Skip to content
Prev Previous commit
Next Next commit
Few typos
  • Loading branch information
zooba committed Feb 22, 2023
commit 4f9695e61dec272b5d2a2bcb59635323e7cda504
2 changes: 1 addition & 1 deletion Doc/library/os.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3063,7 +3063,7 @@ features:
it would contain the same as :attr:`st_dev`, which was incorrect.

.. versionadded:: 3.12
Added the :attr:`st_birthtime` on Windows
Added the :attr:`st_birthtime` member on Windows.


.. function:: statvfs(path)
Expand Down
2 changes: 1 addition & 1 deletion Python/fileutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -1104,7 +1104,7 @@ _Py_attribute_data_to_stat(BY_HANDLE_FILE_INFORMATION *info, ULONG reparse_tag,
} else {
FILE_TIME_to_time_t_nsec(&info->ftCreationTime, &result->st_birthtime, &result->st_birthtime_nsec);
/* We leave ctime as zero because we do not have it without FILE_BASIC_INFO.
Our callers will replace it with btime if they want legacy behaviour */
Our callers will replace it with birthtime if they want legacy behaviour */
FILE_TIME_to_time_t_nsec(&info->ftLastWriteTime, &result->st_mtime, &result->st_mtime_nsec);
FILE_TIME_to_time_t_nsec(&info->ftLastAccessTime, &result->st_atime, &result->st_atime_nsec);
}
Expand Down