forked from benhoyt/scandir
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BF: Fix is_dir/is_file for symlinks (Issue benhoyt#4) in Linux
We need to do an os.stat call for symlinks to see if they point at a file or directory. I am not sure if there is a more efficient way to do this in windows. I went ahead and added caching of the os.stat result too.
- Loading branch information
Showing
1 changed file
with
35 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters