git-annex/Remote
Joey Hess 9f4ffe65e9
implement removeExportDirectory
Not yet called by Command.Export.

WebDAV needs this to clean up empty collections. Also, example.sh turned
out to not be cleaning up directories when removing content
from them, so it made sense for it to use this.

Remote.Directory did not need it, and since its cleanup method for empty
directories is more efficient than what Command.Export will need to do
to find empty directories, it uses Nothing so that extra work can be
avoided.

This commit was sponsored by Thom May on Patreon.
2017-09-15 13:18:21 -04:00
..
Directory remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00
External implement removeExportDirectory 2017-09-15 13:18:21 -04:00
Helper implement removeExportDirectory 2017-09-15 13:18:21 -04:00
Rsync adeiu, MissingH 2017-05-16 01:03:52 -04:00
WebDAV fix exporting files in subdirectories to webdav 2017-09-13 15:09:19 -04:00
BitTorrent.hs prevent exporttree=yes on remotes that don't support exports 2017-09-07 13:48:44 -04:00
Bup.hs prevent exporttree=yes on remotes that don't support exports 2017-09-07 13:48:44 -04:00
Ddar.hs prevent exporttree=yes on remotes that don't support exports 2017-09-07 13:48:44 -04:00
Directory.hs implement removeExportDirectory 2017-09-15 13:18:21 -04:00
External.hs implement removeExportDirectory 2017-09-15 13:18:21 -04:00
GCrypt.hs prevent exporttree=yes on remotes that don't support exports 2017-09-07 13:48:44 -04:00
Git.hs prevent exporttree=yes on remotes that don't support exports 2017-09-07 13:48:44 -04:00
Glacier.hs prevent exporttree=yes on remotes that don't support exports 2017-09-07 13:48:44 -04:00
Hook.hs prevent exporttree=yes on remotes that don't support exports 2017-09-07 13:48:44 -04:00
List.hs prevent exporttree=yes on remotes that don't support exports 2017-09-07 13:48:44 -04:00
P2P.hs prevent exporttree=yes on remotes that don't support exports 2017-09-07 13:48:44 -04:00
Rsync.hs prevent exporttree=yes on remotes that don't support exports 2017-09-07 13:48:44 -04:00
S3.hs implement removeExportDirectory 2017-09-15 13:18:21 -04:00
Tahoe.hs prevent exporttree=yes on remotes that don't support exports 2017-09-07 13:48:44 -04:00
Web.hs prevent exporttree=yes on remotes that don't support exports 2017-09-07 13:48:44 -04:00
WebDAV.hs implement removeExportDirectory 2017-09-15 13:18:21 -04:00