-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename operation from tempDir to target in AS2 package #116
Comments
Hi Itay, |
Hi Philip, |
Thanks Itay for pointing me to the right place - too many abstraction layers in place ;-) |
Hi Philip, |
Work in progress - on Maven Central within the next half hour |
Thanks a lot for the quick response. |
Hi Philip,
We have an issue when the AS2 code trying to rename the file from tempDir to the target.
When the tempDir and the target aren't on the same file system we are getting IOException when trying to rename file.
You are using renameTo method in java.io.File
Could you please modify the code to use move operation in nio package
java.nio.file.Files#move(oldPath,newPath,StandardCopyOption.ATOMIC_MOVE,StandardCopyOption.REPLACE_EXISITING)
You use the tempDir in some places in your code when you store the as2 message ,mdn etc.
Please see the attached link
https://stackoverflow.com/questions/6080295/how-to-rename-a-file-using-java-io-packages#6080330
Thanks,
Itay
The text was updated successfully, but these errors were encountered: