Documentation
¶
Overview ¶
Package fsutil provides shared filesystem safety helpers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsSymlink ¶
IsSymlink returns true if path is a symbolic link. Returns false if the path does not exist, cannot be lstat'd, or the filesystem does not support symlink-aware lstat operations.
func RefuseWriteThroughSymlink ¶
RefuseWriteThroughSymlink rejects writes when the destination path or any existing parent directory between path and stopPath is a symlink.
func RefuseWriteThroughSymlinkOS ¶
RefuseWriteThroughSymlinkOS rejects writes when the destination path or any existing parent directory between path and stopPath is a symlink on the OS filesystem.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.