import downloader complete (untested)

Made some api changes.

listImportableContents needs to provide the size
of the data, so the downloader can check disk free space.

retrieveExportWithContentIdentifier is passed the filepath to write to

Use temporary "CID" key during download of a ContentIdentifier from a
remote, so withTmp can be used and then move the content to the real key
once it's known.
This commit is contained in:
Joey Hess 2019-02-27 13:15:02 -04:00
parent f4b773e9a1
commit 45aacd888b
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
5 changed files with 64 additions and 36 deletions

View file

@ -10,13 +10,6 @@ this.
## implementation notes
* import can run out of disk space. Should listImportableContents
include the size of the file, so that annex.diskreserve can be checked?
* Should retrieveExportWithContentIdentifier have a FilePath parameter,
to tell it the file to retrieve to? And if so, would it make sense to
have a ContentLocation -> Key, so it can use gitAnnexTmpObjectLocation?
* "git annex import master --from rmt" followed by "git annex import master:sub --from rmt"
first makes the tracking branch contain only what's in the remote,
and then grafts what's in the remote into a subdir. Is that the behavior