Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
infraredgirl committed Oct 25, 2022
1 parent 533e259 commit ddb2085
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion files/paths.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ func Grep(regex *regexp.Regexp, glob string) (bool, error) {
return false, nil
}

// Return the relative path you would have to take to get from basePath to path
// GetPathRelativeTo returns the relative path you would have to take to get from basePath to path. If either path
// or basePath are symbolic links, they will be evaluated before the relative path between them is calculated.
func GetPathRelativeTo(path string, basePath string) (string, error) {
if path == "" {
path = "."
Expand Down

0 comments on commit ddb2085

Please sign in to comment.