# File lib/rake/contrib/sys.rb, line 156 156: def split_all(path) 157: head, tail = File.split(path) 158: return [tail] if head == '.' || tail == '/' 159: return [head, tail] if head == '/' 160: return split_all(head) + [tail] 161: end