Skip to content

Commit

Permalink
fix isfifo(::SystemPath)
Browse files Browse the repository at this point in the history
  • Loading branch information
simeonschaub committed Feb 4, 2025
1 parent 8b18030 commit 8aaf0db
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/path.jl
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ Base.isdir(fp::AbstractPath) = isdir(mode(fp))
Base.isfile(fp::AbstractPath) = isfile(mode(fp))
Base.islink(fp::AbstractPath) = islink(lstat(fp).mode)
Base.issocket(fp::AbstractPath) = issocket(mode(fp))
Base.isfifo(fp::AbstractPath) = issocket(mode(fp))
Base.isfifo(fp::AbstractPath) = isfifo(mode(fp))
Base.ischardev(fp::AbstractPath) = ischardev(mode(fp))
Base.isblockdev(fp::AbstractPath) = isblockdev(mode(fp))

Expand Down
2 changes: 1 addition & 1 deletion src/system.jl
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ Base.isdir(fp::SystemPath) = isdir(mode(fp))
Base.isfile(fp::SystemPath) = isfile(mode(fp))
Base.islink(fp::SystemPath) = islink(lstat(fp).mode)
Base.issocket(fp::SystemPath) = issocket(mode(fp))
Base.isfifo(fp::SystemPath) = issocket(mode(fp))
Base.isfifo(fp::SystemPath) = isfifo(mode(fp))
Base.ischardev(fp::SystemPath) = ischardev(mode(fp))
Base.isblockdev(fp::SystemPath) = isblockdev(mode(fp))

Expand Down
2 changes: 1 addition & 1 deletion test/testpkg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ FilePathsBase.isdir(fp::TestPath) = isdir(mode(fp))
Base.isfile(fp::TestPath) = isfile(mode(fp))
Base.islink(fp::TestPath) = islink(lstat(fp).mode)
Base.issocket(fp::TestPath) = issocket(mode(fp))
Base.isfifo(fp::TestPath) = issocket(mode(fp))
Base.isfifo(fp::TestPath) = isfifo(mode(fp))
Base.ischardev(fp::TestPath) = ischardev(mode(fp))
Base.isblockdev(fp::TestPath) = isblockdev(mode(fp))
Base.ismount(fp::TestPath) = ismount(test2posix(fp))
Expand Down

0 comments on commit 8aaf0db

Please sign in to comment.