fsops

package
v0.1.20 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(src, dst string, overwrite bool) error

CopyFile copies a single file from src to dst, creating parent dirs.

func CopyTree

func CopyTree(src, dst string, overwrite bool) error

CopyTree recursively copies a directory tree.

func List

func List(path string) ([]fs.DirEntry, error)

List lists entries in a directory (non-recursive). If path is empty, '.' is used.

func RemoveFile

func RemoveFile(path string) error

RemoveFile removes a file.

func RemoveTree

func RemoveTree(path string) error

RemoveTree removes a directory tree.

func Touch added in v0.1.4

func Touch(path string, ts time.Time) error

Touch updates file timestamps or creates the file if missing.

func Walk

func Walk(root string) ([]string, error)

Walk collects all files/dirs recursively.

Types

This section is empty.

Jump to

Keyboard shortcuts

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