addurl: Include filename in --json-progress output when known.

This commit is contained in:
Joey Hess 2018-08-06 12:52:09 -04:00
parent e5a8d5effa
commit 38ddd6072d
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
3 changed files with 19 additions and 3 deletions

View file

@ -11,3 +11,9 @@ $> git annex addurl --file bigone --json --json-progress https://s3.amazonaws.co
Thanks in advance
[[!meta author=yoh]]
> In general addurl doesn't know the filename until after it's downloaded
> the url (due to running youtube-dl on html urls), but when --file
> or --batch --with-files is used, it does know the filename early.
> So, made the json-progress include the filename when it's known.
> [[done]] --[[Joey]]