files

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abs

func Abs(path string) (string, error)

func Append

func Append(data any, path string) error

func AppendString

func AppendString(data string, path string) error

func Basename

func Basename(path string) string

func Copy

func Copy(src string, dst string) error

func Delete

func Delete(path string) error

func DeleteAll

func DeleteAll(path string) error

func Dirname

func Dirname(path string) string

func Exists

func Exists(path string) bool

func Extension

func Extension(path string) string

func IsDir

func IsDir(path string) bool

func IsFile

func IsFile(path string) bool

func Join

func Join(part1 string, part2 string) string

func List

func List(path string) ([]string, error)

func ListRecursive

func ListRecursive(path string) ([]string, error)

func MkDir

func MkDir(path string) error

func MkDirAll

func MkDirAll(path string) error

func ModTime

func ModTime(path string) (int64, error)

func Move

func Move(src string, dst string) error

func Read

func Read(path string) ([]byte, error)

func ReadBytes

func ReadBytes(path string) ([]byte, error)

func Size

func Size(path string) (int64, error)

func TempDir

func TempDir(prefix string) (string, error)

func TempFile

func TempFile(prefix string) (string, error)

func UseWith

func UseWith(path string, action func(string))

func Watch

func Watch(pattern string, callback func(string))

func Write

func Write(data any, path string) error

func WriteString

func WriteString(data string, path string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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