Documentation
¶
Index ¶
- Variables
- func CloseEnsureROFD(f *os.File) error
- func Cp(ctx context.Context, from, to string) error
- func CpHardlink(ctx context.Context, from, to string) error
- func CreateParentDir(path string) error
- func DeleteDir(dir string, async bool) error
- func IsDirEmpty(name string) (bool, error)
- func IsGlob(path string) bool
- func MakeDirsReadOnly(dir string)
- func MakeDirsReadWrite(dir string)
- func PathExists(filename string) bool
- func PathMatchAny(path string, matchers ...string) (bool, error)
- func PathMatchExactOrPrefixAny(path string, matchers ...string) (bool, error)
- func ProcessUniquePath(p string) string
- func RandPath(base, prefix, suffix string) string
- func StarWalk(ctx context.Context, root, pattern string, ignore []string, fn fs.WalkDirFunc) error
- func StarWalkAbs(ctx context.Context, root, pattern string, ignore []string, fn fs.WalkDirFunc) error
- func Touch(filename string) error
- func WriteFileSync(name string, data []byte, perm os.FileMode) error
- type AtomicFile
- type Path
- type Paths
- type RelPath
- type RelPaths
- type RelablePath
- type RootablePath
- type RootablePaths
Constants ¶
This section is empty.
Variables ¶
View Source
var NilPath = Path{}
Functions ¶
func CloseEnsureROFD ¶
CloseEnsureROFD ensures the fd is ro; fixing the issue described in https://github.com/rust-lang/rust/issues/114554
func CreateParentDir ¶
func IsDirEmpty ¶
func MakeDirsReadOnly ¶
func MakeDirsReadOnly(dir string)
func MakeDirsReadWrite ¶
func MakeDirsReadWrite(dir string)
func PathExists ¶
func ProcessUniquePath ¶
func StarWalkAbs ¶
Types ¶
type AtomicFile ¶
func AtomicCreate ¶
func AtomicCreate(name string) (*AtomicFile, error)
func (*AtomicFile) Close ¶
func (f *AtomicFile) Close() error
type Path ¶
type Path struct {
// contains filtered or unexported fields
}
func NewPathAbs ¶
func (*Path) MarshalJSON ¶
func (*Path) UnmarshalJSON ¶
type RelablePath ¶
type RelablePath interface { RelRoot() string RootablePath }
type RootablePath ¶
type RootablePaths ¶
Click to show internal directories.
Click to hide internal directories.