diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/fragments/ItemsFragment.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/fragments/ItemsFragment.kt index 6d701c4c..57e443a4 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/fragments/ItemsFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/fragments/ItemsFragment.kt @@ -227,7 +227,7 @@ class ItemsFragment : android.support.v4.app.Fragment(), ItemsAdapter.ItemOperat val document = context.getFileDocument(item.absolutePath, mConfig.treeUri) // double check we have the uri to the proper file path, not some parent folder - if (document.uri.toString().endsWith(item.absolutePath.getFilenameFromPath()) && !document.isDirectory) + if (document.uri.toString().endsWith(item.absolutePath.getFilenameFromPath())) document.delete() } else { item.delete()