Open Cerbis opened 4 years ago
Could you please update it by adding split-files support?
Your construction that replaces https://github.com/developersu/ns-usbloader/blob/adabfbe860a059adceeed06f94303d0cd745ee3a/src/main/java/nsusbloader/cli/TinfoilNetCli.java#L122-L123 doesn't cover this case, however in UI (and in CLI) users can select split-files.
Please feel free to tell you thoughts.
Thanks!
If it's okay for you, i would like to keep the change like that. The only change is that a user can also pass a directory instead of files only, the behavior stays the same.
I'm not familiar with the split-files support (and were it happens), so if the current change doesn't break anything i would like to leave it for another merge request.
It breaks this function because it's possible to set slit-files (that are folder) as an input value.
For each of USB-related transfer methods such validation implemented here (extends this class)
For Net-transfers it's here: https://github.com/developersu/ns-usbloader/blob/adabfbe860a059adceeed06f94303d0cd745ee3a/src/main/java/nsusbloader/COM/NET/NetworkSetupValidator.java#L65-L88
This change allows also to pass directories to the cli. It makes it simpler to add multiple files.