I have an application that uses FileMove() on PDFs. The starting directory may vary, but the in the destination directory is always under the same main folder. At the main destination folder I have read permissions setup for a group that are applied to all files and folders below. I have been running into an issue where sometimes just this read permission is not getting applied. I have had the user who usually moves the files via the application try to directly move the file from one directory to another and the permissions apply as expected.
Is there another method to move the files or something I can call to have the permissions reapplied after the move?