local_fs

package
v0.0.0-...-d4a0960 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPath

func CheckPath(dst string) bool

func CreatePath

func CreatePath(dst string, perm os.FileMode) error

func Permission

func Permission(dst string) bool

Types

type LocalFS

type LocalFS struct {
	IsCheckSave bool
}

func (*LocalFS) CheckSave

func (p *LocalFS) CheckSave() error

func (*LocalFS) SendContent

func (p *LocalFS) SendContent(fileKey string, content []byte) (string, error)

func (*LocalFS) SendFile

func (p *LocalFS) SendFile(fileKey string, file io.Reader, itype string) (string, error)

SendFile 上传文件

Jump to

Keyboard shortcuts

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