Reputation: 369
For files there is isfile
, but what if I dont know if the path is taken up by a file or a directory?
Basically, is there a function in Julia Base that does the following:
function is_in_use(path)::Bool
return isfile(path) || isdir(path)
end
Maybe there are more cases that can use a path that I did not think of, but I hope you get the idea.
Upvotes: 4
Views: 226