Skip to content

Commit e5dba29

Browse files
committed
avoid importing actual folders at Import folder
1 parent 912635c commit e5dba29

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/src/main/kotlin/com/simplemobiletools/notes/dialogs/ImportFolderDialog.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class ImportFolderDialog(val activity: SimpleActivity, val path: String, val cal
4141
folder.listFiles { file ->
4242
val filename = file.path.getFilenameFromPath()
4343
when {
44+
file.isDirectory -> false
4445
filename.isImageVideoGif() -> false
4546
file.length() > 10 * 1000 * 1000 -> false
4647
activity.dbHelper.doesTitleExist(filename) -> false

0 commit comments

Comments
 (0)