fsutil

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Renamer = os.Rename

Used for testing.

Functions

func BaseNoExt

func BaseNoExt(path string) string

func FileExists

func FileExists(path string) bool

FileExists returns true if a file (or directory) exists at path. If a file exists but os.Stat() returns an error (e.g. insufficient permissions) FileExists will return false.

func Move

func Move(src, dst string) error

Move moves files or directories. It copies the contents when the move op failes because source and destination do not share the same filesystem.

func SetFileModes

func SetFileModes(root string, dirMode, fileMode fs.FileMode) error

SetFileModes recursively sets the file mode of root and its contents.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL