SFTP Spring download multiple files
ฝัง
- เผยแพร่เมื่อ 6 ก.ย. 2024
- This is how to upload and download multiple .txt-files.
Enjoy! :-)
Thank you for commenting and asking questions.
Get 25 % discount on your Minecraft servers at Shockbyte.com by using this refferal link:
shockbyte.com/...
The code is located here:
github.com/eki...
Follow me on twitter:
/ mikemoelnielsen
Support me on Patreon:
/ mikemoellernielsen
As an Amazon Associate I earn from qualifying purchases.
Check out the stuff that I like (always updated):
kit.co/MikeMoe...
This Video was amaizing man ty a low
Thank you :)
Nice explanation. Can the same file(2GB) be read twice? If I make the application run simultaneously twice (similar to 2 containers), both of them point to the same beinguploaded folder. If yes, how can I prevent it?
Yes the file can be read many times at the same time. You have to code a custom solution to prevent that. The easiest solutions would be to create a lock (maybe a boolean in a service + a timestamp). And when the next thread (user) tries to take the lock then an exception is thrown instead. Since the lock has been taken.
@@MikesTechCornerHow do I use lock here? Like two instances are running on different machines.