Documentation
¶
Overview ¶
Package filterfs provides a wrapper around an fs.FS that only presents regular files and directories to the user.
This wrapper has some overhead, as it attempts to open files to ensure that "invisible" permissions (SELinux, etc.) are also valid.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DirFile ¶
type DirFile struct {
// contains filtered or unexported fields
}
DirFile is a ReadDirFile wrapper for fs.File.
type FS ¶
type FS struct {
// contains filtered or unexported fields
}
FS wraps an fs.FS and hides inaccessible files and directories by returning appropriate "not found" errors or filtering them from listings.
Click to show internal directories.
Click to hide internal directories.