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.
This commit is contained in:
parent
04fe906ac6
commit
e6da7eb177
8 changed files with 87 additions and 40 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue