You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we look at javadoc for Files.getAttribute(), and its source in JDK, we can see and trace that in case of not-existing attribute view (as 'unix' if file is on windows file system), UnsupportedOperationException is thrown, not IOException. Everything fails here without any fallback to non-posix env.
Is it a (known) bug, or I am doing something wrong?
The text was updated successfully, but these errors were encountered:
Ah, thanks for using the library and reporting this @glebsts.
It looks like this is a bug - I must have missed that it's an UnsupportedOperationException that's thrown, so I apologise. We can fix this fairly easily, though.
Hello,
thank you for cool library. I was impressed at Geekout and started building project with that.
My desktop OS is Windows.
https://github.com/testcontainers/testcontainers-java/blob/master/core/src/main/java/org/testcontainers/utility/MountableFile.java#L269
try { return (int) Files.getAttribute(path, "unix:mode"); } catch (IOException e) { // fallback for non-posix environments .....
If we look at javadoc for Files.getAttribute(), and its source in JDK, we can see and trace that in case of not-existing attribute view (as 'unix' if file is on windows file system), UnsupportedOperationException is thrown, not IOException. Everything fails here without any fallback to non-posix env.
Is it a (known) bug, or I am doing something wrong?
The text was updated successfully, but these errors were encountered: