support chunking for all external special remotes!

Removing code and at the same time adding great features, including
upload/download resuming.

This commit was sponsored by Romain Lenglet.
This commit is contained in:
Joey Hess 2014-07-29 18:47:26 -04:00
parent bc9e4697b9
commit c0dc134cde
3 changed files with 15 additions and 50 deletions

View file

@ -295,7 +295,7 @@ retrieveChunks retriever u chunkconfig encryptor basek dest basep sink
return True
tosink h _ (FileContent f) = liftIO $ do
sink h Nothing =<< L.readFile f
nukeFile h
nukeFile f
return True
{- Can resume when the chunk's offset is at or before the end of