avoid unncessary db queries when exported directory can't be empty
In rename foo/bar to foo/baz, foo can't be empty. In delete zxyyz, there's no exported directory (top doesn't count).
This commit is contained in:
parent
af82b2229c
commit
e54a05612e
3 changed files with 24 additions and 19 deletions
|
@ -321,4 +321,6 @@ cleanupRename ea db ek src dest = do
|
|||
removeExportLocation db (asKey ek) src
|
||||
addExportLocation db (asKey ek) dest
|
||||
flushDbQueue db
|
||||
removeEmptyDirectories ea db src [asKey ek]
|
||||
if exportedDirectories src /= exportedDirectories dest
|
||||
then removeEmptyDirectories ea db src [asKey ek]
|
||||
else return True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue