fs_resource

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PermanentDir

type PermanentDir struct {
	Path string
}

func NewPermanentDir

func NewPermanentDir(path string) *PermanentDir

func (*PermanentDir) GetPath

func (t *PermanentDir) GetPath() string

type PermanentFile

type PermanentFile struct {
	Path string
}

func NewPermanentFile

func NewPermanentFile(path string) *PermanentFile

func (*PermanentFile) GetPath

func (f *PermanentFile) GetPath() string

type TempDir

type TempDir struct {
	Path string
}

func NewTempDir

func NewTempDir(parentDirPath string, dirName string) (*TempDir, error)

func (*TempDir) Dispose

func (t *TempDir) Dispose() error

func (*TempDir) GetPath

func (t *TempDir) GetPath() string

type TempFile

type TempFile struct {
	IsDisposed bool
	Path       string
}

func NewTempFile

func NewTempFile(dirPath string, fileName string) (*TempFile, error)

func WriteTempFile

func WriteTempFile(bytes []byte, dirPath string, fileName string) (f *TempFile, err error)

func (*TempFile) Dispose

func (t *TempFile) Dispose() error

func (*TempFile) GetPath

func (t *TempFile) GetPath() string

Jump to

Keyboard shortcuts

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