@Implementation protected static File getExternalStoragePublicDirectory(String type) { if (!exists(EXTERNAL_FILES_DIR)) EXTERNAL_FILES_DIR = RuntimeEnvironment.getTempDirectory().create("external-files"); if (type == null) return EXTERNAL_FILES_DIR.toFile(); Path path = EXTERNAL_FILES_DIR.resolve(type); try { Files.createDirectories(path); } catch (IOException e) { throw new RuntimeException(e); } return path.toFile(); }
@Implementation protected static File getExternalStorageDirectory() { if (!exists(EXTERNAL_CACHE_DIR)) EXTERNAL_CACHE_DIR = RuntimeEnvironment.getTempDirectory().create("external-cache"); return EXTERNAL_CACHE_DIR.toFile(); }
@Implementation public static File getExternalStoragePublicDirectory(String type) { if (!exists(EXTERNAL_FILES_DIR)) EXTERNAL_FILES_DIR = TempDirectory.create(); if (type == null) return EXTERNAL_FILES_DIR.toFile(); Path path = EXTERNAL_FILES_DIR.resolve(type); try { Files.createDirectories(path); } catch (IOException e) { throw new RuntimeException(e); } return path.toFile(); }
@Implementation public static File getExternalStoragePublicDirectory(String type) { if (!exists(EXTERNAL_FILES_DIR)) EXTERNAL_FILES_DIR = TempDirectory.create(); if (type == null) return EXTERNAL_FILES_DIR.toFile(); Path path = EXTERNAL_FILES_DIR.resolve(type); try { Files.createDirectories(path); } catch (IOException e) { throw new RuntimeException(e); } return path.toFile(); }
@Implementation public static File getExternalStoragePublicDirectory(String type) { if (!exists(EXTERNAL_FILES_DIR)) EXTERNAL_FILES_DIR = RuntimeEnvironment.getTempDirectory().create("external-files"); if (type == null) return EXTERNAL_FILES_DIR.toFile(); Path path = EXTERNAL_FILES_DIR.resolve(type); try { Files.createDirectories(path); } catch (IOException e) { throw new RuntimeException(e); } return path.toFile(); }
@Implementation protected static File getExternalStoragePublicDirectory(String type) { if (!exists(EXTERNAL_FILES_DIR)) EXTERNAL_FILES_DIR = RuntimeEnvironment.getTempDirectory().create("external-files"); if (type == null) return EXTERNAL_FILES_DIR.toFile(); Path path = EXTERNAL_FILES_DIR.resolve(type); try { Files.createDirectories(path); } catch (IOException e) { throw new RuntimeException(e); } return path.toFile(); }
@Implementation public static File getExternalStorageDirectory() { if (!exists(EXTERNAL_CACHE_DIR)) EXTERNAL_CACHE_DIR = TempDirectory.create(); return EXTERNAL_CACHE_DIR.toFile(); }
@Implementation public static File getExternalStorageDirectory() { if (!exists(EXTERNAL_CACHE_DIR)) EXTERNAL_CACHE_DIR = TempDirectory.create(); return EXTERNAL_CACHE_DIR.toFile(); }
@Implementation public static File getExternalStorageDirectory() { if (!exists(EXTERNAL_CACHE_DIR)) EXTERNAL_CACHE_DIR = RuntimeEnvironment.getTempDirectory().create("external-cache"); return EXTERNAL_CACHE_DIR.toFile(); }
@Implementation protected static File getExternalStorageDirectory() { if (!exists(EXTERNAL_CACHE_DIR)) EXTERNAL_CACHE_DIR = RuntimeEnvironment.getTempDirectory().create("external-cache"); return EXTERNAL_CACHE_DIR.toFile(); }