Replies: 1 comment 3 replies
-
I think your approach looks ok so there may be a bug. I know that when moving to V2 we made several changes to make the package interact more "normally" with the Although you may not have much choice in this I would strongly recommend moving to a newer LTS version of Java as JRE 8 is (depending on the build) EOL. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I have a question about moving or renaming file using this library. Appreciate any feedback.
background:
aws-java-nio-spi-for-s3 1.2.4
Not able to use 2.0.0 because I have to stick with JRE 8 and am not able to use higher version (JRE 11, etc). Version 2.0.0 seems not compatible with JRE 8 because I saw some errors.
Below was the code I used:
I expected "testfile.tmp" get created first, then renamed(moved) to "testfile".
But what actually happened was that "testfile.tmp" was created first with content of "hello s3", then it was moved into a folder named "testfile". No file "testfile" exists except this folder.
I tried to use Files.copy then File.delete to replace Files.move, the result was the same (Files.move actually was implemented as Files.copy + Files.delete).
I wonder if I did anything wrong above or if there was anyone else had experienced this. Thanks for your time.
Beta Was this translation helpful? Give feedback.
All reactions