fix #918, delete empty folders after Move too when appropriate
This commit is contained in:
parent
7fc8d4a3d8
commit
6e259ab994
1 changed files with 1 additions and 1 deletions
|
@ -533,7 +533,7 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener {
|
|||
}
|
||||
|
||||
private fun deleteDirectoryIfEmpty() {
|
||||
val fileDirItem = FileDirItem(mPath, mPath.getFilenameFromPath())
|
||||
val fileDirItem = FileDirItem(mPath, mPath.getFilenameFromPath(), true)
|
||||
if (config.deleteEmptyFolders && !fileDirItem.isDownloadsFolder() && fileDirItem.isDirectory && fileDirItem.getProperFileCount(applicationContext, true) == 0) {
|
||||
tryDeleteFileDirItem(fileDirItem, true, true)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue