dirfs

package
v0.0.0-...-4a904d8 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SkipDir error = fs.SkipDir

Functions

func CheckInstalledMods

func CheckInstalledMods() (map[string]bool, error)

func CreateDirectory

func CreateDirectory(name string) error

CreateDirectory creates a new directory given a name.

func FindFilePaths

func FindFilePaths(repo billy.Filesystem, ext string) []string

Walks dir in billy.Filesystem

func FindKspPath

func FindKspPath(home string) (string, error)

Find root directory of KSP

func FindKspVersion

func FindKspVersion(fp string) *version.Version

Find version of installed KSP.

func UnzipFile

func UnzipFile(f *zip.File, filePath string) error

Unzip file to specified directory

func WalkDir

func WalkDir(repo billy.Filesystem, root string, fn fs.WalkDirFunc) error

Modified WalkDir function to work with billy.Filesytem instead of os

Types

type WalkFunc

type WalkFunc func(path string, info fs.FileInfo, err error) error

Jump to

Keyboard shortcuts

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