fs

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DirPerm = 0755
)

Variables

This section is empty.

Functions

func ArchiveFolder

func ArchiveFolder(gamePath, gameID string) (data []byte, err error)

func BinToWriter

func BinToWriter(w io.Writer, data []byte) error

func CreateAndProcess

func CreateAndProcess[T any](path string, in T, cb func(w io.Writer, in T) error) error

func CreateFolder

func CreateFolder(path string) error

func CreateFolderIfNotExist

func CreateFolderIfNotExist(path string) error

func IsFolderExist

func IsFolderExist(path string) (isExist bool, err error)

func JsonToWriter

func JsonToWriter[T any](w io.Writer, data T) error

func PathToAbsolutePath

func PathToAbsolutePath(path string) string

func RemoveFolder

func RemoveFolder(path string) error

func StringToInt added in v0.2.0

func StringToInt(val string) int

func StringToInt64

func StringToInt64(in string) (int64, error)

func UnarchiveFolder

func UnarchiveFolder(data []byte, gameID string, cfg *config.Config) (resultGameID string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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