zpath

package
v0.11.7 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileEscape added in v0.3.0

func FileEscape(str string) string

Escape a filename to remove all potentially invalid characters. Reduces a path with multiple directories to a single result

func IsChildOf

func IsChildOf(root, child string) (isChild bool, err error)

Determine if a path is child of the root path.

func ReplaceExt

func ReplaceExt(path, newExt string) string

Replace the extension in a filepath with the new extension

Types

This section is empty.

Jump to

Keyboard shortcuts

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