Documentation ¶
Index ¶
- Constants
- func CreateDir(dir string) error
- func DeleteDir(dir string) error
- func DeleteFile(filePath string) error
- func DirExist(dir string) bool
- func DirNotExist(dir string) bool
- func FileExist(filePath string) bool
- func FileNotExist(filePath string) bool
- func OpenFileIfExist(filePath string) (*os.File, error)
- func OpenFileWithCreateIfNotExist(filePath string) (*os.File, error)
- func SplitDirAndFileName(filePath string) (string, string)
Constants ¶
View Source
const ( DirPerm = 0755 FilePerm = 0666 )
Variables ¶
This section is empty.
Functions ¶
func DeleteFile ¶
func DirNotExist ¶
func FileNotExist ¶
func SplitDirAndFileName ¶
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.
Click to show internal directories.
Click to hide internal directories.