mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-04-14 07:22:01 +02:00
avoid importing actual folders at Import folder
This commit is contained in:
parent
912635c42b
commit
e5dba29899
@ -41,6 +41,7 @@ class ImportFolderDialog(val activity: SimpleActivity, val path: String, val cal
|
||||
folder.listFiles { file ->
|
||||
val filename = file.path.getFilenameFromPath()
|
||||
when {
|
||||
file.isDirectory -> false
|
||||
filename.isImageVideoGif() -> false
|
||||
file.length() > 10 * 1000 * 1000 -> false
|
||||
activity.dbHelper.doesTitleExist(filename) -> false
|
||||
|
Loading…
x
Reference in New Issue
Block a user