Handle downloads from multiple hosts?
Should we handle downloads from multiple hosts? If so, how do we make sure files with equal paths across hosts do not overwrite each other? E.g. do we add an option to pass a function to customize the target path?
Environment
N/A
Expected Behavior
Not sure.
Actual Behavior
At the moment, the behavior for running an SSHKit download on multiple hosts is unclear if the same path exists on 2 or more hosts.
I feel like it's hard to draw the line between the library being a toolkit vs. a full-blown application.
One the one side, one could argue, that if the library is only a toolkit, questions like "is the source present on all hosts", "what should happen if one downloaded file overrides the other" are a responsibility of the app using the toolkit. There are for instance probably also reasons / situations where one would want the last downloaded file to override the others 🤔
How about doing another feature discussion session about that in the larger group? It could make sense to collect more potential situations to get a better idea of where drawing the boarder between toolkit and application makes most sense to neither be too "parenting" nor too "lax" 😉
The most minimal action would probably be to at least know / document and test the current behavior for this situation though.
Awesome @klappradla. Yes, I'd love it if we could stick our heads together to think about this ❤️