Skip to content

Commit

Permalink
Added ismount function.
Browse files Browse the repository at this point in the history
  • Loading branch information
malmaud committed May 15, 2015
1 parent a65dfe5 commit 6c696f4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions base/stat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,10 @@ function samefile(a::AbstractString, b::AbstractString)
return false
end
end

function ismount(path...)
path = abspath(joinpath(path...))
isdir(path) || return false
parent_path = splitdir(path)[1]
device(path) != device(parent_path)
end

0 comments on commit 6c696f4

Please sign in to comment.