Skip to content

Commit

Permalink
Add ZFS check on macOS
Browse files Browse the repository at this point in the history
Apparently you can get ZFS on macOS:
https://github.com/openzfsonosx/zfs

Addresses #1, #12, #13
  • Loading branch information
jakewilliami committed Sep 11, 2022
1 parent 2b0ef9d commit 77f38cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HiddenFiles.jl
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export ishidden


#=== All macOS cases ===#
_ishidden(f::AbstractString) = _ishidden_bsd_related(f) || _exists_inside_package_or_bundle(f)
_ishidden(f::AbstractString) = _ishidden_bsd_related(f) || _exists_inside_package_or_bundle(f) || (iszfs() && _ishidden_zfs(f))
elseif Sys.isbsd() # BSD
_hidden(f::AbstractString) = _ishidden_bsd_related(f) || (iszfs() && _ishidden_zfs(f))
else # General UNIX
Expand Down

0 comments on commit 77f38cb

Please sign in to comment.