mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-04-15 15:57:24 +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 ->
|
folder.listFiles { file ->
|
||||||
val filename = file.path.getFilenameFromPath()
|
val filename = file.path.getFilenameFromPath()
|
||||||
when {
|
when {
|
||||||
|
file.isDirectory -> false
|
||||||
filename.isImageVideoGif() -> false
|
filename.isImageVideoGif() -> false
|
||||||
file.length() > 10 * 1000 * 1000 -> false
|
file.length() > 10 * 1000 * 1000 -> false
|
||||||
activity.dbHelper.doesTitleExist(filename) -> false
|
activity.dbHelper.doesTitleExist(filename) -> false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user