Friendica
daniel:// stenberg://
daniel:// stenberg://

daniel:// stenberg://

bagder@mastodon.social

daniel:// stenberg://

bagder@mastodon.social
I write curl. I don't know anything.
ActivityPub
2024-08-19 21:18:39 2024-08-17 20:27:43 2024-08-17 20:27:41 5340193

daniel:// stenberg://
daniel:// stenberg://
mastodon - Link to source

daniel:// stenberg://

1 year ago • •

daniel:// stenberg://

1 year ago • •


skip a #curl transfer

- If the target file already exists on disk, skip downloading it.

daniel.haxx.se/blog/2024/08/17…

skip a curl transfer | daniel.haxx.se

daniel.haxx.se
#curl
This entry was edited (1 year ago)
  •  Languages
  •  Search Text
  •  Share via ...

daniel:// stenberg:// reshared this.

in reply to daniel:// stenberg://

m_eiman
mastodon - Link to source

m_eiman

in reply to daniel:// stenberg:// • 1 year ago • •
skip a bit, brother
  •  Languages
  •  Search Text
  •  Share via ...
in reply to m_eiman

daniel:// stenberg://
mastodon - Link to source

daniel:// stenberg://

in reply to m_eiman • 1 year ago • •
@mikaeleiman 10 points
@m_eiman
  •  Languages
  •  Search Text
  •  Share via ...
in reply to daniel:// stenberg://

thewanderer
mastodon - Link to source

thewanderer

in reply to daniel:// stenberg:// • 1 year ago • •
curl parrot.live
  •  Languages
  •  Search Text
  •  Share via ...
in reply to daniel:// stenberg://

Daniel
mastodon - Link to source

Daniel

in reply to daniel:// stenberg:// • 1 year ago • •

Interesting! By default if a download fails halfway through, will there be a partially downloaded file kept around?

Meaning if I run this command the first time kicking off a download, but this download fails, the 2nd time I run it'll always skip since the file exists already.

  •  Languages
  •  Search Text
  •  Share via ...
in reply to Daniel

daniel:// stenberg://
mastodon - Link to source

daniel:// stenberg://

in reply to Daniel • 1 year ago • •
@djh unless you use --remove-on-error, yes
@Daniel
  •  Languages
  •  Search Text
  •  Share via ...
in reply to daniel:// stenberg://

Daniel
mastodon - Link to source

Daniel

in reply to daniel:// stenberg:// • 1 year ago • •
Gotcha, thanks! 🙇‍♂️ Then it'll be important for users to understand the various ways to skip or resume downloads! Awesome that curl allows for this flexibility! 🎉
  •  Languages
  •  Search Text
  •  Share via ...
in reply to daniel:// stenberg://

Thomas Guyot-Sionnest
mastodon - Link to source

Thomas Guyot-Sionnest

in reply to daniel:// stenberg:// • 1 year ago • •

Wouldn't a resume option do the same and more?

I could see where skipping files could be useful, but imho it's easy to deal with in scripts, resuming OTOH isn't and would skip files if the size match (possibly with a variant to skip if length can't be pre-determined or transfer can't be resumed...).

  •  Languages
  •  Search Text
  •  Share via ...
in reply to Thomas Guyot-Sionnest

daniel:// stenberg://
mastodon - Link to source

daniel:// stenberg://

in reply to Thomas Guyot-Sionnest • 1 year ago • •
@dermoth If the protocol and the URL support resume, then it is similar yes. Two conditions that complicate matters and might make this option useful to people.
@Thomas Guyot-Sionnest
  •  Languages
  •  Search Text
  •  Share via ...
⇧