gfs

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendContentToFile

func AppendContentToFile(content string, fileUrl string) error

Append Content To File

func CopyDir

func CopyDir(src string, dst string) error

Copy Dir

func CopyFile

func CopyFile(srcUri string, dstUri string) error

Copy File

func DirExists

func DirExists(dir string) bool

Dir Exists

func DirSize

func DirSize(path string) (int64, error)

Dir Size

func FileExists

func FileExists(fileUri string) bool

File Exists

func GetExtension

func GetExtension(fileName string) string

Get Extension

func GetFileName

func GetFileName(filePath, Splitor string) string

GET File Name

func MakeDir

func MakeDir(dir string) error

Make Dir

func ModifyTime

func ModifyTime(path string) (int64, error)

ModifyTime

func PathExists

func PathExists(path string) bool

Path Exists

func PrependContentToFile

func PrependContentToFile(content string, fileUrl string) error

Prepend Content To File

func ReadFile

func ReadFile(fileUrl string) (string, error)

Read file

func RemoveDir

func RemoveDir(dir string) error

Remove Dir

func ScanDir added in v1.7.7

func ScanDir(deep bool, result *ScanDirStruct) error

func WriteContentToFile

func WriteContentToFile(content string, dir string, fileUrl string) error

Write Content To File

Types

type ScanDirStruct added in v1.7.7

type ScanDirStruct struct {
	Name  string
	Path  string
	IsDir bool
	Sons  []*ScanDirStruct
}

Scan Dir

Jump to

Keyboard shortcuts

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