files

package
v0.0.0-...-1d0ba01 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbsolutePath

func AbsolutePath(path string) (string, error)

AbsolutePath ...

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 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