getRootDir static method

String getRootDir(
  1. String appFilesDir
)

Implementation

static String getRootDir(String appFilesDir) {
  return appFilesDir
      .split("/")
      .sublist(0, appFilesDir.split("/").length - 4)
      .join("/");
}