From 2aea8192e1769c4acfbc130ba4d788abd5ee4539 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 1 Sep 2017 13:02:07 -0400 Subject: refactor ExportActions This will allow disabling exports for remotes that are not configured to allow them. Also, exportSupported will be useful for the external special remote to probe. This commit was supported by the NSF-funded DataLad project --- Remote/WebDAV.hs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'Remote/WebDAV.hs') diff --git a/Remote/WebDAV.hs b/Remote/WebDAV.hs index 9230a027d..4c9552a6f 100644 --- a/Remote/WebDAV.hs +++ b/Remote/WebDAV.hs @@ -28,6 +28,7 @@ import Config.Cost import Remote.Helper.Special import Remote.Helper.Messages import Remote.Helper.Http +import Remote.Helper.Export import qualified Remote.Helper.Chunked.Legacy as Legacy import Creds import Utility.Metered @@ -68,11 +69,7 @@ gen r u c gc = new <$> remoteCost gc expensiveRemoteCost , lockContent = Nothing , checkPresent = checkPresentDummy , checkPresentCheap = False - , storeExport = Nothing - , retrieveExport = Nothing - , removeExport = Nothing - , checkPresentExport = Nothing - , renameExport = Nothing + , exportActions = exportUnsupported , whereisKey = Nothing , remoteFsck = Nothing , repairRepo = Nothing -- cgit v1.2.3