Skip to content

Commit ddb2085

Browse files
committed
Update comment
1 parent 533e259 commit ddb2085

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

files/paths.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ func Grep(regex *regexp.Regexp, glob string) (bool, error) {
6868
return false, nil
6969
}
7070

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

0 commit comments

Comments
 (0)