fh

package
v0.0.0-...-8685a14 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToHuman

func BytesToHuman(src uint64) string

BytesToHuman converts 1024 to '1 KiB' etc

func ExpandPatternLists

func ExpandPatternLists(pattern string) (result []string, err error)

ExpandPatternLists expands {comma separated list} of one level deep

func IsDirectory

func IsDirectory(path string) (b bool, err error)

IsDirectory checks whether path is directory and exists

func ResolvePath

func ResolvePath(path string, usr *user.User) (string, error)

ResolvePath {"" -> ".", "~..." -> "user.HomeDir..."} -> Abs

func SafeParentResolvePath

func SafeParentResolvePath(path string, usr *user.User, perm os.FileMode) (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