Skip to content

Commit b7b0eb4

Browse files
committed
lets actually allow deleting folders
1 parent 4699943 commit b7b0eb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/kotlin/com/simplemobiletools/filemanager/fragments/ItemsFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ class ItemsFragment : android.support.v4.app.Fragment(), ItemsAdapter.ItemOperat
227227
val document = context.getFileDocument(item.absolutePath, mConfig.treeUri)
228228

229229
// double check we have the uri to the proper file path, not some parent folder
230-
if (document.uri.toString().endsWith(item.absolutePath.getFilenameFromPath()) && !document.isDirectory)
230+
if (document.uri.toString().endsWith(item.absolutePath.getFilenameFromPath()))
231231
document.delete()
232232
} else {
233233
item.delete()

0 commit comments

Comments
 (0)