Closed fommil closed 9 years ago
def parents(f: File): List[File] = { val parent = f.getParentFile() if (parent == null) Nil else parent :: parents(parent) }
oh, actually you have this as ancestors but it is private. Consider making public?
ancestors
isAncestorOf would also be quite handy.
isAncestorOf
I'm also trying to convince if contains should return false for a contains a
contains
a contains a