RelativePath returns the relative path from root for this node
()
| 275 | |
| 276 | // RelativePath returns the relative path from root for this node |
| 277 | func (fn *Node) RelativePath() string { |
| 278 | if fn.IsIrregular() || fn.FileRoot == nil { |
| 279 | return fn.Name |
| 280 | } |
| 281 | return fsx.RelativeFilePath(string(fn.Filepath), string(fn.FileRoot.Filepath)) |
| 282 | } |
| 283 | |
| 284 | // dirFileList returns the list of files in this directory, |
| 285 | // sorted according to DirsOnTop and SortByModTime options |
no test coverage detected