file

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	// contains filtered or unexported fields
}

func New

func New(lg *zap.Logger, dir, ext string) *File

func (File) CreateDir

func (f File) CreateDir(dirPath string) error

func (File) CreateFileByPath

func (f File) CreateFileByPath(filePath string) (*os.File, error)

func (File) CreateFileByUUID

func (f File) CreateFileByUUID(uuid string) (*os.File, error)

func (File) GetAllFilesPaths

func (f File) GetAllFilesPaths() []string

func (File) GetFilePath

func (f File) GetFilePath(uuid string) string

func (File) GetFileUUID

func (f File) GetFileUUID(filePath string) string

func (File) IsFileExistByPath

func (f File) IsFileExistByPath(filePath string) bool

func (File) IsFileExistByUUID

func (f File) IsFileExistByUUID(uuid string) bool

func (File) OpenFileByPath

func (f File) OpenFileByPath(filePath string) (*os.File, error)

func (File) OpenFileByUUID

func (f File) OpenFileByUUID(uuid string) (*os.File, error)

func (File) RemoveDirByPath

func (f File) RemoveDirByPath(dirPath string) error

func (File) RemoveFileByPath

func (f File) RemoveFileByPath(filePath string) error

func (File) RemoveFileByUUID

func (f File) RemoveFileByUUID(uuid string) error

Jump to

Keyboard shortcuts

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