# Functions
EnsureLeadingSlash is like EnsureTrailingSlash except that it adds the leading slash if needed.
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.
NewAuthority initializes Authority struct by parsing authority string.
RemoveLeadingSlash removes leading slash, if any.
RemoveTrailingSlash removes trailing slash, if any.
Deprecated: Use TouchCopyBuffer Instead TouchCopy is a wrapper around io.Copy which ensures that even empty source files (reader) will get written as an empty file.
TouchCopyBuffered is a wrapper around io.CopyBuffer which ensures that even empty source files (reader) will get written as an empty file.
UpdateLastModifiedByMoving is used by some backends' Touch() method when a file already exists.
ValidateAbsoluteFilePath ensures that a file path has a leading slash but not a trailing slash.
ValidateAbsoluteLocationPath ensure that a file path has both leading and trailing slashes.
ValidateRelativeFilePath ensures that a file path has neither leading nor trailing slashes.
ValidateRelativeLocationPath ensure that a file path has no leading slash but has a trailing slash.
# Constants
ErrBadAbsFilePath constant is returned when a file path is not absolute.
ErrBadAbsLocationPath constant is returned when a file path is not absolute.
ErrBadRelFilePath constant is returned when a file path is not relative.
ErrBadRelLocationPath constant is returned when a file path is not relative.
TouchCopyMinBufferSize min buffer size used in TouchCopyBuffered in bytes.