def split_path(path)
      splitted = path.split(SLASH)
      splitted << EMPTY_STR if path.end_with? SLASH
      splitted
    end
def split_path(path)
      splitted = path.split(SLASH)
      splitted << EMPTY_STR if path.end_with? SLASH
      splitted
    end
Splits path string with "/" (slash).
 It is considered that there is empty string after last slash when
 path ends with slash.

 @param [String] path The path to split.

 @return [Array<String>] An array of parts of path.