forked from Unity-Technologies/crunch
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
crnlib: additional way to test if a path is a directory
For some unknown reasons open() fails at this point on macOS if the file is on a network file system and it is not in the current directory, same with `stat()` and variants. But opendir() works if the path is a directory, so let's assume what is not a directory is a regular file. This assumption may be wrong, this is why this guess is only done if two other implementations failed to detect the file type first.
- Loading branch information
Showing
1 changed file
with
35 additions
and
7 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