file

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: May 23, 2025 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckWriteFile added in v0.1.4

func CheckWriteFile(name string, data []byte, perm os.FileMode, createDir bool, dirPerm os.FileMode) (err error)

func Hide

func Hide(path string) error

Types

type MentoryFile added in v0.1.8

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

func NewMentoryFile added in v0.1.8

func NewMentoryFile(name string) *MentoryFile

func WriteMentoryFile added in v0.1.8

func WriteMentoryFile(name string, buffer []byte) *MentoryFile

func (*MentoryFile) Bytes added in v0.1.8

func (mf *MentoryFile) Bytes() []byte

func (*MentoryFile) ChangeName added in v0.1.8

func (mf *MentoryFile) ChangeName(name string)

func (*MentoryFile) Close added in v0.1.8

func (mf *MentoryFile) Close() error

func (*MentoryFile) IsDir added in v0.1.8

func (mf *MentoryFile) IsDir() bool

func (*MentoryFile) ModTime added in v0.1.8

func (mf *MentoryFile) ModTime() time.Time

func (*MentoryFile) Mode added in v0.1.8

func (mf *MentoryFile) Mode() os.FileMode

func (*MentoryFile) Name added in v0.1.8

func (mf *MentoryFile) Name() string

func (*MentoryFile) Read added in v0.1.8

func (mf *MentoryFile) Read(buffer []byte) (int, error)

func (*MentoryFile) Seek added in v0.1.8

func (mf *MentoryFile) Seek(offset int64, whence int) (int64, error)

func (*MentoryFile) Size added in v0.1.8

func (mf *MentoryFile) Size() int64

func (*MentoryFile) Stat added in v0.1.8

func (mf *MentoryFile) Stat() (fs.FileInfo, error)

func (*MentoryFile) Sys added in v0.1.8

func (mf *MentoryFile) Sys() any

func (*MentoryFile) Write added in v0.1.8

func (mf *MentoryFile) Write(buffer []byte) (n int, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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