chadlwilson commented on pull request #319:
URL: https://github.com/apache/commons-io/pull/319#issuecomment-1025911018


   Thanks! I have got past this particular error and the bunch of tests that 
were triggering it, but now there seems to be another problem due to 
https://github.com/apache/commons-io/commit/1e73dd92a2224828dd45f47ae8e96a8c0cd2d3d8
 or perhaps related commits elsewhere which affects dynamic creation of 
files/paths which I am having trouble tracking down.
   
   There appears to be some change which is leading a file to be created for 
something that should be a (parent) directory, which then leads to issues with 
`FileUtils.writeStringToFile` ending up with
   
   ```
   jvm 1    | Caused by: java.nio.file.FileAlreadyExistsException: config
   jvm 1    |   at 
java.base/sun.nio.fs.UnixException.translateToIOException(Unknown Source)
   jvm 1    |   at 
java.base/sun.nio.fs.UnixException.rethrowAsIOException(Unknown Source)
   jvm 1    |   at 
java.base/sun.nio.fs.UnixException.rethrowAsIOException(Unknown Source)
   jvm 1    |   at 
java.base/sun.nio.fs.UnixFileSystemProvider.createDirectory(Unknown Source)
   jvm 1    |   at java.base/java.nio.file.Files.createDirectory(Unknown Source)
   jvm 1    |   at 
java.base/java.nio.file.Files.createAndCheckIsDirectory(Unknown Source)
   jvm 1    |   at java.base/java.nio.file.Files.createDirectories(Unknown 
Source)
   jvm 1    |   at 
org.apache.commons.io.file.PathUtils.createParentDirectories(PathUtils.java:339)
   jvm 1    |   at 
org.apache.commons.io.file.PathUtils.newOutputStream(PathUtils.java:1066)
   jvm 1    |   at 
org.apache.commons.io.FileUtils.newOutputStream(FileUtils.java:2454)
   jvm 1    |   at 
org.apache.commons.io.FileUtils.writeStringToFile(FileUtils.java:3543)
   jvm 1    |   at 
org.apache.commons.io.FileUtils.writeStringToFile(FileUtils.java:3528)
   ```
   
   Will see if I can track down what changed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@commons.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to