pathutil

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2021 License: MIT Imports: 3 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ReInvalidPathChars = regexp.MustCompile(`[<>:"/\\\|?\*]+`)

ReInvalidPathChars is used to remove invalid path characters

Functions

func DirExists

func DirExists(path string) (bool, error)

DirExists checks if a path exists and is a directory.

func Exists

func Exists(path string) (bool, error)

Exists checks if a file or directory exists.

func IsDir

func IsDir(path string) (bool, error)

IsDir checks if a given path is a directory.

func IsEmpty

func IsEmpty(path string) (bool, error)

IsEmpty checks if a given path is empty.

func LinkExists

func LinkExists(path string) (bool, error)

LinkExists checks if link exists.

func RemoveInvalidPathChars

func RemoveInvalidPathChars(s string, repl string) string

RemoveInvalidPathChars removes invalid characters for path

Types

This section is empty.

Jump to

Keyboard shortcuts

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