summaryrefslogtreecommitdiff
path: root/Command/SetKey.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Command/SetKey.hs')
-rw-r--r--Command/SetKey.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Command/SetKey.hs b/Command/SetKey.hs
index af46fe06e..6f6078e4b 100644
--- a/Command/SetKey.hs
+++ b/Command/SetKey.hs
@@ -32,7 +32,8 @@ perform :: FilePath -> CommandPerform
perform file = do
key <- cmdlineKey
-- the file might be on a different filesystem, so mv is used
- -- rather than simply calling moveToObjectDir
+ -- rather than simply calling moveToObjectDir; disk space is also
+ -- checked this way.
ok <- getViaTmp key $ \dest -> do
if dest /= file
then liftIO $