fix #918, delete empty folders after Move too when appropriate

This commit is contained in:
tibbi 2018-08-20 22:56:09 +02:00
parent 7fc8d4a3d8
commit 6e259ab994

View file

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