Skip to content

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

@ayaka14732

Description

@ayaka14732

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions