Im using the FileUtils.copyDirectory method but it gives me the error of "Failed to list contents of foldername". I know the folder exists and I can write there because creating a file works.

What could be wrong?

Recommended Answers

is that an error message you made yourself, or is that the message printed in the stacktrace?

[FileUtils](http://commons.apache.org/proper/commons-io/apidocs/org/apache/commons/io/FileUtils.html#copyDirectory(java.io.File, java.io.File))

Jump to Post

All 2 Replies

Stacktrace. I thought it was obvious that foldername was a placeholder, sorry.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.