class AdbPathUtil {

  @NotNull
  public static List<String> getSegments(@NotNull String path) {
    // Special case for root
    if (StringUtil.isEmpty(path) || FILE_SEPARATOR.equals(path)) {
      return new ArrayList<>();
    }

    return StringUtil.split(path, FILE_SEPARATOR);
  }

}