etils icon indicating copy to clipboard operation
etils copied to clipboard

Return value format of `epath.Path.stat()` does not match `pathlib.Path.stat()`

Open ayaka14732 opened this issue 8 months ago • 0 comments

Format of epath.Path.stat():

https://github.com/google/etils/blob/v1.9.2/etils/epath/stat_utils.py#L21-L39

Format of pathlib.Path.stat():

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

Apart from the attribute name differences, the attribute that I am currently interested in is pathlib.Path.stat().st_mtime_ns, which represents mtime in nanoseconds. However, epath.Path.stat() does not return this information.

ayaka14732 avatar Jun 12 '24 11:06 ayaka14732