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 < tres.finocchi...@gmail.com> 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 commons-io@2.4 and commons-io@2.11 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. > > - tres.finocchi...@gmail.com >