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...

ความคิดเห็น • 5

  • @denisr.8248
    @denisr.8248 2 ปีที่แล้ว +1

    This Video was amaizing man ty a low

  • @tlli7556
    @tlli7556 ปีที่แล้ว +1

    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?

    • @MikesTechCorner
      @MikesTechCorner  ปีที่แล้ว +1

      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.

    • @okaberintarou5020
      @okaberintarou5020 4 หลายเดือนก่อน

      @@MikesTechCornerHow do I use lock here? Like two instances are running on different machines.