Documentation ¶
Overview ¶
Package fsutil defiens a set of internal utility functions used to interact with the file system.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureMaxPermissions ¶
EnsureMaxPermissions tests the provided file info, returning an error if the file's permission bits contain excess permissions not set in maxPerms.
For example, a file with permissions -rw------- will successfully validate with maxPerms -rw-r--r-- or -rw-rw-r--, but will not validate with maxPerms -r-------- (due to excess --w------- permission) or --w------- (due to excess -r-------- permission).
Only permission bits of the file modes are considered.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.