fs

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanJoin added in v0.0.7

func CleanJoin(prefix string, elem string) (string, error)

CleanJoin checks to make sure that the prefix path remains after the join, this is to control for path traversal

func FileExists

func FileExists(path string) bool

FileExists checks to see if a path exists and is a file

func Match added in v0.0.11

func Match(pattern, path string) bool

Match does basic glob matching. It is similar to filepath.Match except it currently only supports wildcards (*) and recursive wildcards (**), which is not supported by filepath.Match

func PathExists

func PathExists(path string) bool

PathExists checks to see if a path exists

func Split added in v0.0.11

func Split(path string) []string

Split splits a file path into its parts

Types

This section is empty.

Jump to

Keyboard shortcuts

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