diff options
author | Joey Hess <joeyh@joeyh.name> | 2017-09-15 15:04:29 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2017-09-15 15:22:53 -0400 |
commit | 373a4dfc331386cf66add44ea751c09e86440bfb (patch) | |
tree | 16c2df9fc3624a125bd64305d1b8a30faca212b7 /Upgrade | |
parent | 4fde30fcd9cee040622309f2392a8c0a645a3069 (diff) |
remove empty directories when removing from export
The subtle part of this is what happens when the remote fails to remove
an empty directory. The removal from the export needs to fail in that
case, so the removal will be tried again later. However, removeExportLocation
has already been run and changed the export db, so if the next run
checks getExportLocation, it might decide nothing remains to be done,
leaving the empty directory.
Dealt with that by making removeEmptyDirectories, handle a failure
by calling addExportLocation, reverting the database changes so the next
run will be guaranteed to try deleting the empty directory again.
This commit was sponsored by Thomas Hochstein on Patreon.
Diffstat (limited to 'Upgrade')
0 files changed, 0 insertions, 0 deletions