pathlib

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckDirPath

func CheckDirPath(path string) (string, error)

CheckDirPath cleans a path and checks for its existence. Files are considered invalid, must be directory. Non-existing directories are considered an error here.

func CheckSrcDst

func CheckSrcDst(src, dst string) (string, string, error)

CheckSrcDst cleans input path strings 'src' and 'dst'. Src and dst must not be identical, src must exist but dst not necessarily.

func Resolve

func Resolve(path string) string

Resolve converts potential home dir ~ and cd .. into an absolute path

func ResolveHomeDir

func ResolveHomeDir(path string) string

ResolveHomeDir converts potential home dir ~ into an absolute path

Types

This section is empty.

Jump to

Keyboard shortcuts

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