internal_api

package
v1.1.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DirPerm  = 0755
	FilePerm = 0666
)
View Source
const (
	Slash = slash
)

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 GetWorkPath

func GetWorkPath(s ...string) (string, error)

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