files

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbsolutePath

func AbsolutePath(path string) (string, error)

AbsolutePath ...

func Clean added in v0.5.9

func Clean(path string, mode os.FileMode) error

Clean cleans the path and recreates it with the given mode.

func CopyFile

func CopyFile(src, dst string, mkdir bool) (int64, error)

CopyFile ...

func ExpandHomeFolder

func ExpandHomeFolder(path string) (string, error)

ExpandHomeFolder ...

func FileExists

func FileExists(path string) (bool, error)

FileExists is testing if a file exists at a given path.

func FileNotExists

func FileNotExists(path string) (bool, error)

FileNotExists is testing if a file does not exists at a given path.

func IsDir

func IsDir(path string) (bool, error)

IsDir ...

func IsDirEmpty

func IsDirEmpty(name string) (bool, error)

IsDirEmpty is a function to check if a directory is empty.

func MkdirAll

func MkdirAll(path string, mode os.FileMode) error

MkdirAll makes a new directory at path with the file mode.

func PathTransform

func PathTransform(path string, funcs ...Transformer) (string, error)

PathTransform ...

func PrependHomeFolder

func PrependHomeFolder(path string) (string, error)

PrependHomeFolder ...

Types

type TearDownFunc

type TearDownFunc func()

TearDownFunc ...

func TempDir

func TempDir() (*os.File, TearDownFunc, error)

TempDir ...

type Transformer

type Transformer func(path string) (string, error)

Transformer ...

Jump to

Keyboard shortcuts

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