fsutils

package
v0.1.64 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EvalSymlinks(path string) (string, error)

EvalSymlinks returns the path name after the evaluation of any symbolic links.

func ExpandDir added in v0.1.8

func ExpandDir(path string) (string, error)

ExpandDir expands a path that starts with ~ to the user's home directory and returns the absolute path.

func FilterFileByExtensions added in v0.1.8

func FilterFileByExtensions(exts ...string) func(_, path string) bool

func FilterFileByNames added in v0.1.19

func FilterFileByNames(names ...string) func(_, path string) bool

func GetFiles

func GetFiles(rootPath string, skipSymlink bool, filters ...filterFn) []string

func Getwd

func Getwd() (string, error)

Getwd returns the current working directory.

func IsDir

func IsDir(path string) bool

IsDir checks if the given path is a directory

func IsFile added in v0.0.29

func IsFile(path string) bool

IsFile checks if the given path is a file

func Rel added in v0.1.0

func Rel(basepath, targpath string) string

Rel returns a relative path from basepath to targpath.

func SplitManifests added in v0.1.19

func SplitManifests(data string) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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