avoid importing actual folders at Import folder

This commit is contained in:
tibbi 2018-05-17 11:21:16 +02:00
parent 912635c42b
commit e5dba29899
1 changed files with 1 additions and 0 deletions

View File

@ -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