diff options
author | Joey Hess <joey@kitenet.net> | 2011-01-28 14:10:50 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-01-28 14:10:50 -0400 |
commit | e6da7eb1770e506661d8c6755736ed285a17554a (patch) | |
tree | 170d6a8c3a73a84f7d44de3580a774837fc8cf8f /Content.hs | |
parent | 04fe906ac6e611fd59ef44244a01e8fe61abec6f (diff) |
Improved temp file handling
* Improved temp file handling. Transfers of content can now be resumed
from temp files later; the resume does not have to be the immediate
next git-annex run.
* unused: Include partially transferred content in the list.
Diffstat (limited to 'Content.hs')
-rw-r--r-- | Content.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Content.hs b/Content.hs index d0ed8d861..e16ad883c 100644 --- a/Content.hs +++ b/Content.hs @@ -67,7 +67,7 @@ logStatus key status = do getViaTmp :: Key -> (FilePath -> Annex Bool) -> Annex Bool getViaTmp key action = do g <- Annex.gitRepo - let tmp = gitAnnexTmpDir g </> keyFile key + let tmp = gitAnnexTmpLocation g key liftIO $ createDirectoryIfMissing True (parentDir tmp) success <- action tmp if success |