diff --git a/trashbin/src/main/java/com/amaze/trashbin/TrashBinConfig.kt b/trashbin/src/main/java/com/amaze/trashbin/TrashBinConfig.kt index 3109e40..275f3c0 100644 --- a/trashbin/src/main/java/com/amaze/trashbin/TrashBinConfig.kt +++ b/trashbin/src/main/java/com/amaze/trashbin/TrashBinConfig.kt @@ -55,6 +55,10 @@ data class TrashBinConfig( } fun getMetaDataFilePath(): String { + val baseDir = File(basePath) + if (!baseDir.exists()) { + baseDir.mkdirs() + } val file = File(basePath, TRASH_BIN_META_FILE) if (!file.exists()) { file.createNewFile()