Fixes #4462 - Do not applied recursion on files to prevent warning and applied permissions on base directory