summaryrefslogtreecommitdiff
path: root/Remote/WebDAV.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2017-09-13 15:03:37 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2017-09-13 15:09:19 -0400
commitd5563ace55321012e291d1f5ae86e3d34ef52901 (patch)
tree7542a62a84f1ba8ec2833670826733eb443592e7 /Remote/WebDAV.hs
parenta72dfd263a4f8a682c6d29442860d3c99a848389 (diff)
fix exporting files in subdirectories to webdav
Use tmp/key when exporting, so the whole export directory structure does not have to be created under tmp/ This commit was sponsored by Denis Dzyubenko on Patreon.
Diffstat (limited to 'Remote/WebDAV.hs')
-rw-r--r--Remote/WebDAV.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Remote/WebDAV.hs b/Remote/WebDAV.hs
index c45776a69..5e853ae22 100644
--- a/Remote/WebDAV.hs
+++ b/Remote/WebDAV.hs
@@ -179,9 +179,9 @@ checkKey r chunkconfig (Just dav) k = do
either giveup return v
storeExportDav :: Maybe DavHandle -> FilePath -> Key -> ExportLocation -> MeterUpdate -> Annex Bool
-storeExportDav mh f _k loc p = runExport mh $ \dav -> do
+storeExportDav mh f k loc p = runExport mh $ \dav -> do
reqbody <- liftIO $ httpBodyStorer f p
- storeHelper dav (exportTmpLocation loc) (exportLocation loc) reqbody
+ storeHelper dav (keyTmpLocation k) (exportLocation loc) reqbody
return True
retrieveExportDav :: Maybe DavHandle -> Key -> ExportLocation -> FilePath -> MeterUpdate -> Annex Bool