diff --git a/utils/src/main/java/one/nem/lacerta/utils/impl/DeviceInfoUtilsImpl.java b/utils/src/main/java/one/nem/lacerta/utils/impl/DeviceInfoUtilsImpl.java index 703bc959..1cb5c759 100644 --- a/utils/src/main/java/one/nem/lacerta/utils/impl/DeviceInfoUtilsImpl.java +++ b/utils/src/main/java/one/nem/lacerta/utils/impl/DeviceInfoUtilsImpl.java @@ -24,12 +24,22 @@ public class DeviceInfoUtilsImpl implements DeviceInfoUtils { return Objects.requireNonNull(applicationContext.getExternalFilesDir(null)).toPath(); } + @Override + public String getExternalStorageDirectoryString() { + return getExternalStorageDirectory().toString(); + } + @Override public Path getExternalStorageDirectory(String type) { // TODO-rca: 結果がnullだった場合の処理を追加する? return Objects.requireNonNull(applicationContext.getExternalFilesDir(type)).toPath(); } + @Override + public String getExternalStorageDirectoryString(String type) { + return getExternalStorageDirectory(type).toString(); + } + @Override public boolean hasPermission(String permission) { return false;