utils

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BaseRoot

func BaseRoot() string

func CanWriteDir

func CanWriteDir(p string) bool

func CopyDir

func CopyDir(src, dst string) error

func CreateDir

func CreateDir(path string) error

func DirExists

func DirExists(path string) bool

func DirSize

func DirSize(path string) int64

func FileExists

func FileExists(path string) bool

func GetAppDataPath

func GetAppDataPath() string

func GetDirNames

func GetDirNames(path string) []string

func GetInstallerDir

func GetInstallerDir() (string, error)

func GetLastDirName

func GetLastDirName(path string) string

func GetMinecraftGDKDataPath

func GetMinecraftGDKDataPath(ispreview bool) string

func GetVersionsDir

func GetVersionsDir() (string, error)

func JsonCompatBytes added in v0.0.17

func JsonCompatBytes(data []byte) []byte

func LauncherDir

func LauncherDir() string

func RemoveDir

func RemoveDir(path string) error

func SanitizeFilename

func SanitizeFilename(name string) string

func ZipDir

func ZipDir(srcDir, destZip string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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