fstools

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	L10nDownloadDir string
	ContentDataDir  string
	TEMPDir         string
)

Functions

func CheckGamePathAvaliable added in v0.0.15

func CheckGamePathAvaliable(path string) error

func CheckoutAllRsiLogFiles added in v0.0.15

func CheckoutAllRsiLogFiles() (paths []string)

func CopyTo added in v0.0.8

func CopyTo(src, dstDir string) error

复制 me 至 /a/b/d 目录下: src: /a/b/c/me dstDir: /a/b/d

func GetAvaliableGameDirsFromLogs added in v0.0.15

func GetAvaliableGameDirsFromLogs(paths []string, isOnlyLive bool) []string

如果还有其他寻录方式,请将过滤上移至调用者。

func GetL10NVersionName added in v0.0.15

func GetL10NVersionName(gameRoot string) (isL10nInstalled bool, versionName string)

func HideFile

func HideFile(filename string) error

func InitCacheDataDir added in v0.0.15

func InitCacheDataDir(wd string) (err error)

缓存都放在这 注意初始化

func ScanFiles added in v0.0.8

func ScanFiles(loc string) (paths []string, isDirs []bool, err error)

func ScanTree

func ScanTree(root string) (pathList []string, err error)

Types

type GamePathCheckResult added in v0.0.15

type GamePathCheckResult struct {
	Path string
	Err  error
}

type HashAndCopyResult added in v0.0.15

type HashAndCopyResult struct {
	// contains filtered or unexported fields
}

type HashAndCopyWorker added in v0.0.15

type HashAndCopyWorker func(src string) (hashMap map[string]string, err error)

Jump to

Keyboard shortcuts

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