fs

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ZipNoCompression      = flate.NoCompression
	ZipBestSpeed          = flate.BestSpeed
	ZipMediumCompression  = 5
	ZipBestCompression    = flate.BestCompression
	ZipDefaultCompression = flate.DefaultCompression
	ZipHuffmanOnly        = flate.HuffmanOnly
)

Zip compression levels

Variables

This section is empty.

Functions

This section is empty.

Types

type Copier added in v0.7.0

type Copier interface {
	CopyFile(src, dst string) error
	CopyDir(src string, dst string) error
}

Copier ...

type StandardCopier added in v0.7.0

type StandardCopier struct {
	OS        immuos.OS
	CopyFileF func(src, dst string) error
	CopyDirF  func(src string, dst string) error
}

StandardCopier ...

func NewStandardCopier added in v0.7.0

func NewStandardCopier() *StandardCopier

NewStandardCopier ...

func (*StandardCopier) CopyDir added in v0.7.0

func (sc *StandardCopier) CopyDir(src string, dst string) error

CopyDir ...

func (*StandardCopier) CopyFile added in v0.7.0

func (sc *StandardCopier) CopyFile(src, dst string) error

CopyFile ...

type StandardTarer added in v0.7.0

type StandardTarer struct {
	OS       immuos.OS
	TarItF   func(src string, dst string) error
	UnTarItF func(src string, dst string) error
}

StandardTarer ...

func NewStandardTarer added in v0.7.0

func NewStandardTarer() *StandardTarer

NewStandardTarer ...

func (*StandardTarer) TarIt added in v0.7.0

func (st *StandardTarer) TarIt(src string, dst string) error

TarIt ...

func (*StandardTarer) UnTarIt added in v0.7.0

func (st *StandardTarer) UnTarIt(src string, dst string) error

UnTarIt ...

type StandardZiper added in v0.7.0

type StandardZiper struct {
	OS       immuos.OS
	ZipItF   func(src, dst string, compressionLevel int) error
	UnZipItF func(src, dst string) error
}

StandardZiper ...

func NewStandardZiper added in v0.7.0

func NewStandardZiper() *StandardZiper

NewStandardZiper ...

func (*StandardZiper) UnZipIt added in v0.7.0

func (sz *StandardZiper) UnZipIt(src, dst string) error

UnZipIt ...

func (*StandardZiper) ZipIt added in v0.7.0

func (sz *StandardZiper) ZipIt(src, dst string, compressionLevel int) error

ZipIt ...

type Tarer added in v0.7.0

type Tarer interface {
	TarIt(src string, dst string) error
	UnTarIt(src string, dst string) error
}

Tarer ...

type Ziper added in v0.7.0

type Ziper interface {
	ZipIt(src, dst string, compressionLevel int) error
	UnZipIt(src, dst string) error
}

Ziper ...

Jump to

Keyboard shortcuts

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