This fixes #5, making it possible to read/write directory times on Windows. According to MSDN, FILE_FLAG_BACKUP_SEMANTICS is necessary to open a directory handle via CreateFile.
The change only updates the code path for times just to be conservative.
I tested the fix on an NTFS volume on Windows 10. I did not test against FAT/FAT32.
This fixes #5, making it possible to read/write directory times on Windows. According to MSDN,
FILE_FLAG_BACKUP_SEMANTICS
is necessary to open a directory handle viaCreateFile
.The change only updates the code path for times just to be conservative.
I tested the fix on an NTFS volume on Windows 10. I did not test against FAT/FAT32.