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