internal

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DirPerm  = 0755
	FilePerm = 0666
)

Variables

This section is empty.

Functions

func CreateDir

func CreateDir(dir string) error

func DeleteDir

func DeleteDir(dir string) error

func DeleteFile

func DeleteFile(filePath string) error

func DirExist

func DirExist(dir string) bool

func DirNotExist

func DirNotExist(dir string) bool

func FileExist

func FileExist(filePath string) bool

func FileNotExist

func FileNotExist(filePath string) bool

func OpenFileIfExist

func OpenFileIfExist(filePath string) (*os.File, error)

func OpenFileWithCreateIfNotExist

func OpenFileWithCreateIfNotExist(filePath string) (*os.File, error)

func SplitDirAndFileName

func SplitDirAndFileName(filePath string) (string, string)

SplitDirAndFileName +example "a" -> "", "a" "a/b" -> "a", "b" "a/b/c.d" -> "a/b","c.d" "/a/b/c.d" -> "/a/b","c.d"

Types

This section is empty.

Jump to

Keyboard shortcuts

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