file

package
v0.0.0-...-034ee8e Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyDir

func CopyDir(srcDir, dstDir string, createIfNotExists bool) error

func DirExists

func DirExists(dirPath string) bool

func FileExists

func FileExists(filePath string) bool

func IsDir

func IsDir(filePath string) bool

func IsSafeFilePath

func IsSafeFilePath(filePath string) bool

func ListFiles

func ListFiles(filePath string, recursive bool) ([]string, error)

ListFiles get all files in the directory specified. if the param recursive is true, it will be get all files recusively, else just get files in current dir.

func ReadFileToLines

func ReadFileToLines(filePath string) ([]string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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