logoalt Hacker News

bayindirhtoday at 12:18 PM1 replyview on HN

> Unless it does something very weird it won't trigger all those files to download at the same time. That shouldn't be a worry.

The moment you call read() (or fopen() or your favorite function), the download will be triggered. It's a hook sitting between you and the file. You can't ignore it.

The only way to bypass it is to remount it over rclone or something and use "ls" and "lsd" functions to query filenames. Otherwise it'll download, and it's how it's expected to work.


Replies

Dylan16807today at 12:26 PM

Why would it use either of those on all the files at once? It should only be opening enough files to fill the upload buffer.

show 2 replies