fileutils

package
v0.0.0-...-5c48035 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyDir

func CopyDir(source string, dest string) error

CopyDir copies a directory from source to dest and all of its sub-directories. It doesn't stop if it finds an error during the copy. Returns an error if any.

func CopyFile

func CopyFile(source string, dest string) error

CopyFile copies a file from source to dest and returns an error if any.

func FileModeToInt

func FileModeToInt(fMode fs.FileMode) string

func FileModeToString

func FileModeToString(fMode fs.FileMode) string

func FileNameWithoutExtension

func FileNameWithoutExtension(fileName string) string

func GetAppExecutablePath

func GetAppExecutablePath() string

GetAppExecutablePath 获取App所在目录

func GetDirSize

func GetDirSize(path string) float64

func GetFileCreateTime

func GetFileCreateTime(path string) int64
func IsSymlink(mode os.FileMode) bool

func PathExists

func PathExists(path string) bool

Types

type FileTime

type FileTime struct {
	Mtime time.Time
	Atime time.Time
	Ctime time.Time
}

func GetFileTimeSpec

func GetFileTimeSpec(info os.FileInfo) FileTime

Jump to

Keyboard shortcuts

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