RelativePathFrom returns the relative path from node for given full path
(fpath core.Filename)
| 496 | |
| 497 | // RelativePathFrom returns the relative path from node for given full path |
| 498 | func (fn *Node) RelativePathFrom(fpath core.Filename) string { |
| 499 | return fsx.RelativeFilePath(string(fpath), string(fn.Filepath)) |
| 500 | } |
| 501 | |
| 502 | // dirsTo opens all the directories above the given filename, and returns the node |
| 503 | // for element at given path (can be a file or directory itself -- not opened -- just returned) |
no test coverage detected