Under the covers it ends up calling *java.nio.file.Files.copy(Path, Path,
CopyOption...)*.

On Sat, Aug 20, 2022 at 2:30 PM Gary Gregory <[email protected]> wrote:

> Hello Tres,
>
> Use *org.apache.commons.io.FileUtils.copyFile(File, File, boolean,
> CopyOption...)* to exercise full control over what you want to do.
>
> Gary
>
>
> On Sat, Aug 20, 2022 at 12:30 PM Tres Finocchiaro <
> [email protected]> wrote:
>
>> Hi,
>>
>> I'm updating some dependent libraries and hit a snag with commons-io.  I
>> was hoping someone here could help.
>>
>> I've noticed a major change in behavior with FileUtils.copyDirectory()
>> between [email protected] and [email protected] that affects the permission of
>> files being copied.
>>
>> I've posted the technical details here, with steps to reproduce:
>> https://stackoverflow.com/questions/73428286
>>
>> In short:
>>
>>    1. The default 2.4 behavior was to inherit permissions of the target
>>    2. The default 2.11 behavior seems to not inherit permissions of the
>>    target
>>
>> Any insight is greatly appreciated.
>>
>> - [email protected]
>>
>

Reply via email to