fs

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDirs

func CreateDirs(dirPaths ...string) error

CreateDirs creates directories from the given directory path arguments.

func FileExists

func FileExists(path string) (bool, error)

FileExists checks whether the given path exists and belongs to a file.

func PrependPath

func PrependPath(filepath string, prefix string) string

PrependPath prepends a path with prefix while disregarding back directories ../

func ReplacePath

func ReplacePath(p, old, new string) string

PrependPath prepends a path with prefix while disregarding back directories ../

Types

This section is empty.

Jump to

Keyboard shortcuts

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