git-annex/Database
Joey Hess c633144d28
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.
2017-09-15 15:22:53 -04:00
..
Keys refactor 2016-10-17 14:58:33 -04:00
Export.hs remove empty directories when removing from export 2017-09-15 15:22:53 -04:00
Fsck.hs fix consistency bug reading from export database 2017-09-06 17:19:07 -04:00
Handle.hs fix consistency bug reading from export database 2017-09-06 17:19:07 -04:00
Init.hs Work around sqlite's incorrect handling of umask when creating databases. 2017-02-13 17:39:16 -04:00
Keys.hs fix consistency bug reading from export database 2017-09-06 17:19:07 -04:00
Queue.hs fix consistency bug reading from export database 2017-09-06 17:19:07 -04:00
Types.hs factor non-type stuff out of Key 2017-02-24 13:42:30 -04:00