package
2.1.4+incompatible
Repository: https://github.com/c2fo/vfs.git
Documentation: pkg.go.dev

# Functions

AddTrailingSlash is a helper function accepts a path string and returns the path string with a trailing slash if there wasn't one.
CleanPrefix resolves relative dot pathing, removing any leading .
EnsureTrailingSlash is like AddTrailingSlash but will only ever use / since it's use for web uri's, never an Windows OS path.
GetFileURI returns a File URI.
GetLocationURI returns a Location URI.
TouchCopy is a wrapper around io.Copy which ensures that even empty source files (reader) will get written as an empty file.
ValidateFilePrefix performs a validation check on a prefix.

# Constants

BadFilePrefix constant is returned when path has leading slash or backslash.
Windows constant represents a target operating system running a version of Microsoft Windows.