google / google/etils

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

Open
#630 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
259
Forks
34
Avg merge
57m
Merged PRs (30d)
1

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.