fsutil

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrIsNotRelative = fmt.Errorf("path is not relative")

Functions

func CopyFile

func CopyFile(src, dst string) error

func CopyFs

func CopyFs(fs fs.FS, destDir string) error

func CopyFsFile

func CopyFsFile(fs fs.FS, src, dst string) error

func GetFsFilenames

func GetFsFilenames(efs fs.FS) (files []string, err error)

func GetNonExisting

func GetNonExisting(parentDirPath string, desiredName string) (resultingName string, err error)

func GetRelPathInsideDir added in v0.9.7

func GetRelPathInsideDir(path, base string) (string, error)

func IsInDir

func IsInDir(dir, path string) (bool, error)

func RenameFile

func RenameFile(src, dst string) error

func RenameOrCopyFile added in v0.9.5

func RenameOrCopyFile(src, dst string, logger logging.Logger) error

func WriteBinFile

func WriteBinFile(path string, data []byte) error

func WriteFile

func WriteFile(path string, data []byte) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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