1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-27 01:22:30 +00:00

DOCS/lua.rst: fix docs for utils.file_info

The ctime member on Windows uses FILE_BASIC_INFO.ChangeTime, which is
pretty much the same as st_ctime on POSIX.

See https://devblogs.microsoft.com/oldnewthing/20100709-00/?p=13463 :

  ... The Last­Write­Time covers writes to the file’s data stream
  (which you accomplish via the Write­File function). On the other
  hand, the Change­Time also includes changes to the file metadata,
  such as changing its file attributes ...

Fixes #8801
This commit is contained in:
Avi Halachmi (:avih) 2021-05-03 13:17:46 +03:00
parent 39630dc8b6
commit b6aedaa726

View File

@ -769,7 +769,7 @@ strictly part of the guaranteed API.
``mtime``
time of last modification
``ctime``
time of last metadata change (Linux) / time of creation (Windows)
time of last metadata change
``is_file``
Whether ``path`` is a regular file (boolean)
``is_dir``