Skip to content

Commit

Permalink
Add trash bin directory check
Browse files Browse the repository at this point in the history
  • Loading branch information
VishalNehra committed Aug 12, 2023
1 parent 5b90339 commit acdf63c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions trashbin/src/main/java/com/amaze/trashbin/TrashBinConfig.kt
Expand Up @@ -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()
Expand Down

0 comments on commit acdf63c

Please sign in to comment.