Documentation ¶
Overview ¶
Package fspath contains FS path manipulation tools, much like the standard library's "path/filepath" package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommonBase ¶
CommonBase returns the common base path between a and b. Returns "." if there are no common path elements.
func Rel ¶
Rel returns the relative FS path from basePath to targetPath. Similar to filepath.Rel without including OS-dependent behavior.
func WorkingDirectoryFS ¶ added in v0.1.4
WorkingDirectoryFS returns the os.FS for the current working directory. If using Windows, the os.FS used will target the osPath's volume (e.g. C:\).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.