Welcome Guest, Not a member yet? Register   Sign In
CI4: directory_mirror() throws an error if destination directory exists
#1

(This post was last modified: 12-14-2021, 10:59 AM by daniel2912. Edit Reason: Added CodeIgniter Version )

Codeigniter 4.1.5: Helper function directory_mirror() throws an error if destination directory exists (with overwrite option true), because there is no check whether directory already exists (filesystem_helper.php line 94).
Reply
#2

(This post was last modified: 12-14-2021, 07:35 PM by paulbalandan.)

The overwrite option only applies to existing files.

However, if you think the option should extend to existing directories as well, please submit an issue report to GitHub
https://github.com/codeigniter4/CodeIgniter4/issues
Reply
#3

Thanks for reply - I submit an issue because the name of the function (* mirror *) suggests working with subdirectories ...
Reply




Theme © iAndrew 2016 - Forum software by © MyBB