Documentation ¶
Overview ¶
Package dirutil contains directory manipulation helpers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTopLevelDirectoryNotFound = errors.New("top-level directory not found")
ErrTopLevelDirectoryNotFound is returned by MkSubdir if the top-level directory is not found.
Functions ¶
func MkSubdirAll ¶
func MkSubdirAll(osi OSInterface, topLevelDir, subDir string, perm fs.FileMode) error
MkSubdirAll is like os.MkdirAll(subDir, perm) but will only create missing subdirectories of topLevelDir (but not topLevelDir itself). If a top-level directory is unmounted, we want to avoid recreating it, which is what os.MkdirAll() does.
Types ¶
Click to show internal directories.
Click to hide internal directories.