mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-02-06 05:13:37 +01:00
lets actually allow deleting folders
This commit is contained in:
parent
46999432d9
commit
b7b0eb463a
@ -227,7 +227,7 @@ class ItemsFragment : android.support.v4.app.Fragment(), ItemsAdapter.ItemOperat
|
|||||||
val document = context.getFileDocument(item.absolutePath, mConfig.treeUri)
|
val document = context.getFileDocument(item.absolutePath, mConfig.treeUri)
|
||||||
|
|
||||||
// double check we have the uri to the proper file path, not some parent folder
|
// 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()
|
document.delete()
|
||||||
} else {
|
} else {
|
||||||
item.delete()
|
item.delete()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user