fsutils

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurrentUser

func GetCurrentUser() (usr *user.User, err error)

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