simplify interface by removing size
Add size to the returned key after the fact, unless the remote happened to add it itself.
This commit is contained in:
parent
85cd79ea01
commit
57cceac569
3 changed files with 8 additions and 4 deletions
|
@ -350,8 +350,8 @@ guardSameContentIdentifiers cont old new
|
|||
| new == Just old = cont
|
||||
| otherwise = giveup "file content has changed"
|
||||
|
||||
importKeyM :: FilePath -> ExportLocation -> ContentIdentifier -> ByteSize -> MeterUpdate -> Annex Key
|
||||
importKeyM dir loc cid sz p = do
|
||||
importKeyM :: FilePath -> ExportLocation -> ContentIdentifier -> MeterUpdate -> Annex Key
|
||||
importKeyM dir loc cid p = do
|
||||
backend <- chooseBackend (fromRawFilePath f)
|
||||
k <- fst <$> genKey ks p backend
|
||||
currcid <- liftIO $ mkContentIdentifier absf =<< getFileStatus absf
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue