Skip to content

Commit

Permalink
Merge pull request #5 from davidanthoff/fix-issocket-bug
Browse files Browse the repository at this point in the history
Fix method signature for issocket
  • Loading branch information
rofinn authored Jul 25, 2018
2 parents 85e9d70 + ee10f8a commit 7dfe449
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mode.jl
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ Base.isfile(mode::Mode) = _meta(mode.m) == S_IFREG
Base.islink(mode::Mode) = _meta(mode.m) == S_IFLNK

"""Return True if mode is from a socket."""
Base.issocket(mode) = _meta(mode.m) == S_IFSOCK
Base.issocket(mode::Mode) = _meta(mode.m) == S_IFSOCK

"""Return True if mode is from a FIFO (named pipe)."""
Base.isfifo(mode::Mode) = _meta(mode.m) == S_IFIFO
Expand Down

0 comments on commit 7dfe449

Please sign in to comment.