When trying to do a `File.copyTo` and setting `ove...
# announcements
m
When trying to do a
File.copyTo
and setting
overwrite = true
it still throws a
FileAlreadyExistsException
. I check the file permissions and so far can't write nor can't read. Is there anything that I can do to force a file to be updated? I tried deleting but nope.
d
One situation where overwriting can fail is if the file exists, but is a non-empty directory.
👍 1