Documentation
¶
Index ¶
- func Copy(src, dst string, recursive bool) error
- func Exists(path string) bool
- func Find(root, pattern string) ([]string, error)
- func IsDir(path string) bool
- func IsFile(path string) bool
- func IsSymlink(path string) bool
- func MkdirAll(path string, perm os.FileMode) error
- func Move(src, dst string) error
- func PermString(mode os.FileMode) string
- func ReadLink(path string) (string, error)
- func Remove(path string, recursive bool) error
- func Resolve(format string, args ...any) string
- func Symlink(target, link string) error
- func Touch(path string) error
- func Walk(root string, walkFn WalkFunc) error
- type FileInfo
- type TreeEntry
- type WalkFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PermString ¶
PermString returns a human-readable permission string (like ls -l).
Types ¶
type FileInfo ¶
type FileInfo struct {
Name string
Path string
Size int64
Mode os.FileMode
ModTime int64 // Unix timestamp
UID uint32
GID uint32
IsDir bool
IsLink bool
Target string // For symlinks
}
FileInfo represents information about a file.
Click to show internal directories.
Click to hide internal directories.