package
0.0.0-20241217200950-e77bea9c52fc
Repository: https://chromium.googlesource.com/infra/luci/luci-go
Documentation: pkg.go.dev

# Functions

AbsPath is a convenience wrapper around filepath.Abs that accepts a string pointer, base, and updates it on successful resolution.
Copy makes a copy of the file.
CreateDirectories creates the directory structure needed by the given list of files.
GetCommonAncestor returns the smallest path which is the ancestor of all provided paths (which must actually exist on the filesystem).
GetFilenameNoExt returns the base file name without the extension.
GetFreeSpace returns the number of free bytes.
HardlinkRecursively efficiently copies a file or directory from src to dst.
IsDir to see whether |path| is a directory.
IsEmptyDir returns whether |dir| is empty or not.
IsNotExist calls os.IsNotExist on the unwrapped err.
MakeDirs is a convenience wrapper around os.MkdirAll that applies a 0755 mask to all created directories.
MakePathUserWritable updates the filesystem metadata on a single file or directory to make it user-writable.
MakeReadOnly recursively iterates through all of the files and directories starting at path and marks them read-only.
MakeTreeFilesReadOnly makes all the files in the directories read only but not the directories themselves.
MakeTreeReadOnly makes all the files in the directories read only.
MakeTreeWritable makes all the files in the directories writeable.
ReadableCopy makes a copy of the file that is readable by everyone.
RemoveAll is a fork of os.RemoveAll that attempts to deal with read only files and directories by modifying permissions as necessary.
RenamingRemoveAll opportunistically renames a path first, and then removes it.
ResolveSymlink recursively resolves simlink and returns absolute path that is not symlink with stat.
SetReadOnly sets or resets the write bit on a file or directory.
Touch creates a new, empty file at the specified path.

# Variables

ErrRootSentinel is wrapped and then returned from GetCommonAncestor when it encounters one of the provided rootSentinels.

# Structs

TempDir configures a temporary directory.