Skip to content

Commit e6b60d0

Browse files
committed
use isreadable instead of ispath
1 parent dca1438 commit e6b60d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/loading.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1971,7 +1971,7 @@ function _include_dependency(mod::Module, _path::AbstractString; track_content=t
19711971
if !_track_dependencies[]
19721972
if !path_may_be_dir && !isfile(path)
19731973
throw(SystemError("including file $(repr(path))", Libc.ENOENT))
1974-
elseif path_may_be_dir && !ispath(path)
1974+
elseif path_may_be_dir && !Filesystem.isreadable(path)
19751975
throw(SystemError("including file or folder $(repr(path))", Libc.ENOENT))
19761976
end
19771977
else

0 commit comments

Comments
 (0)