pathx

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abs

func Abs(filePath string) string

func AbsEx

func AbsEx(baseRoot, filePath string) string

func DCopy

func DCopy(srcdir, destdir string, info os.FileInfo) error

DCopy is for a directory, with scanning contents inside the directory and pass everything to "copy" recursively.

func FCopy

func FCopy(src, dest string, info os.FileInfo) error

FCopy is for just a file, with considering existence of parent directory and file permission.

func IsDirExists

func IsDirExists(path string) (bool, error)

IsDirExists function

func IsFileExists

func IsFileExists(path string) (bool, error)

IsFileExists function

func IsPathExists

func IsPathExists(path string) (bool, error)

IsPathExists function

func LCopy

func LCopy(src, dest string, _ os.FileInfo) error

LCopy is for a symlink, with just creating a new symlink by replicating src symlink.

func LookPath

func LookPath(file string) (string, error)

LookPath searches for an executable named file in the directories named by the PATH environment variable. can change the PATH

func MustDirExists

func MustDirExists(path string) error

MustDirExists function

func MustDirOfFileExists

func MustDirOfFileExists(file string) error

MustDirOfFileExists function

func RemoveAll

func RemoveAll(path string) error

RemoveAll function

func UseWorkDir

func UseWorkDir(workDir string, cb func()) (err error)

func XCopy

func XCopy(src, dest string) error

XCopy copies src to dest, doesn't matter if src is a directory or a file

Types

This section is empty.

Jump to

Keyboard shortcuts

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