filesystem

package
v0.0.0-...-70044d4 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(in, out string) (int64, error)

func CopyIoFile

func CopyIoFile(src, dest string) error

func Exists

func Exists(fileFullPath string) bool

func ExistsDir

func ExistsDir(fileFullPath string) bool

func ExistsFile

func ExistsFile(fileFullPath string) bool

func FileMd5

func FileMd5(filename string) (string, int64, error)

func FileStat

func FileStat(fileName string) (*os.File, os.FileInfo, error)

func FindExitingFile

func FindExitingFile(fileList ...string) string

func GetFiles

func GetFiles(currentPath string) (error, []string)

func GetFilesByFilter

func GetFilesByFilter(currentPath string, filenameFilter string) (err error, files []string)

func GetOSFile

func GetOSFile(inputFilepath string) (f os.FileInfo, err error)

func Mkdirp

func Mkdirp(path string)

func MkdirpList

func MkdirpList(paths []string)

func MkdirpSync

func MkdirpSync(path string) (mkdirError error)

Types

type ByModTime

type ByModTime []os.FileInfo

func (ByModTime) Len

func (fis ByModTime) Len() int

func (ByModTime) Less

func (fis ByModTime) Less(i, j int) bool

func (ByModTime) Swap

func (fis ByModTime) Swap(i, j int)

Jump to

Keyboard shortcuts

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