Skip to content

use os.scandir() for improved performance #15

@akaihola

Description

@akaihola

The os.scandir() function introduced in Python 3.5 offers improved performance when the file type and attributes are needed as well.

We could keep using os.listdir on Python <3.5 and wrap file names in os.DirEntry-like objects which would support just the functionality we need in hardlinkpy.

We should first of course be compatible with Python 3 to start with... see #4.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions