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.