Skip to content

Commit 0720fbb

Browse files
isfile_casesensitive: check if path in fail fast too
1 parent 5f141b8 commit 0720fbb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

base/loading.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ if Sys.isunix() && !Sys.isapple()
1111
elseif Sys.iswindows()
1212
# GetLongPathName Win32 function returns the case-preserved filename on NTFS.
1313
function isfile_casesensitive(path)
14-
isaccessiblefile(path) || return false # Fail fast
14+
isaccessiblepath(path) || return false # Fail fast. Not a path when case insensitive
15+
isaccessiblefile(path) || return false # Fail fast. Not a file when case insensitive
1516
basename(Filesystem.longpath(path)) == basename(path)
1617
end
1718
elseif Sys.isapple()

0 commit comments

Comments
 (0)