Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindRoot ¶
Public: get the first absolute path that has the "root" parameter as its root from the perspective of the "current" path. The current path can be relative (e.g. "." is an accepted value). The returned path has no trailing slashes. Note that if no path was found, then "/" will be returned.
Example:
FindRoot("mssola", "/home/mssola/another/mssola/dir") -> returns "/home/mssola/another/mssola"
Returns a string containing the absolute path matching the confitions. Note that this works on UNIX systems. I haven't tested this on Windows.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.