# File lib/rake/contrib/sys.rb, line 138 138: def split_all(path) 139: head, tail = File.split(path) 140: return [tail] if head == '.' || tail == '/' 141: return [head, tail] if head == '/' 142: return split_all(head) + [tail] 143: end