vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/file_utils.rb
def split_all(path)
    head, tail = File.split(path)
    return [tail] if head == "." || tail == "/"
    return [head, tail] if head == "/"
    return split_all(head) + [tail]
  end
# Split a file path into individual directory names.
#
# Example:
#   split_all("a/b/c") =>  ['a', 'b', 'c']
#
Split a file path into individual directory names.
Split a file path into individual directory names .
def split_all(path)
    head, tail = File.split(path)
    return [tail] if head == "." || tail == "/"
    return [head, tail] if head == "/"
    return split_all(head) + [tail]
  end
def split_all ( path ) head , tail = File . split ( path ) return [ tail ] if head == "." || tail == "/" return [ head , tail ] if head == "/" return split_all ( head ) + [ tail ] end
Split a file path into individual directory names.
Split a file path into individual directory names .
path