fops

package
v0.2.21 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compress

func Compress(buf *bytes.Buffer, file *os.File, level int, encrypt bool) error

func CompressData added in v0.2.11

func CompressData(data []byte, file *os.File, level int, encrypt bool) error

func Contains added in v0.2.11

func Contains(source, target string) bool

func Decompress

func Decompress(fpath string, encrypt bool) ([]byte, error)

func Decrypt

func Decrypt(data []byte) ([]byte, error)

func DecryptFile

func DecryptFile(fpath string) ([]byte, error)

func Encrypt

func Encrypt(data []byte) ([]byte, error)

func ListDir added in v0.2.11

func ListDir(fpath string) ([]string, error)

func MkDir

func MkDir(fpath string) error

func MkDirExt added in v0.2.11

func MkDirExt(fpath, base_path string, compress bool) (string, error)

func ReadFile added in v0.2.10

func ReadFile(fpath string, decrypt bool) ([]byte, error)

func WriteFile

func WriteFile(file *os.File, data []byte, encrypt bool) error

func WriteNewFile added in v0.2.11

func WriteNewFile(fpath string, data []byte, encrypt bool) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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