Skip to content

Commit

Permalink
Merge pull request #7418 from ihnorton/dir_perms
Browse files Browse the repository at this point in the history
Partially address #7385
  • Loading branch information
ihnorton committed Jun 28, 2014
2 parents a7e05df + a487dcf commit 0375c16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion base/stat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ for f in {
:issetgid
:issticky
:isreadable
:iswritable
:isexecutable
:uperm
:gperm
Expand All @@ -107,6 +106,8 @@ end

islink(path...) = islink(lstat(path...))

@windows_only iswritable(path...) = ccall(:_waccess, Cint, (Ptr{Uint16}, Cint), utf16(joinpath(path...)), 2) == 0
@unix_only iswritable(path...) = ccall(:access, Cint, (Ptr{Uint8}, Cint), joinpath(path...), 2) == 0

# some convenience functions

Expand Down

0 comments on commit 0375c16

Please sign in to comment.