Description
Hi,
The current implementation for copyFileToDirectory by default preserve the file.
There 2 issues regarding this:
- the javadoc mentions this is done by File.setLastModified by in fact this is done by the COPY_ATTRIBUTES options
- Under Windows, the COPY_ATTRIBUTES also copies the security attributes (SID and permissions) and can lead to a file not beeing readable after copy (if for example, you copie from a mount under docker or a shared folder)
Attachments
Issue Links
- links to