wordpress-develop/tests/phpunit/tests/filesystem
Peter Wilson 7cfc7a46f9 Filesystem API: Attempt to create directory in copy_dir().
Adds a check to the start of `copy_dir()` that the destination directory exists and attempts to create it if it does not.

An error is returned if the directory can not be created, either due to a permissions error or the parent directory not existing.

Props caraffande, costdev, zunaid321.
Fixes #41855.



git-svn-id: https://develop.svn.wordpress.org/trunk@55938 602fd350-edb4-49c9-b593-d223f7449a82
2023-06-19 01:58:25 +00:00
..
base.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
copyDir.php Filesystem API: Attempt to create directory in copy_dir(). 2023-06-19 01:58:25 +00:00
findFolder.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
moveDir.php Filesystem API: Add test for uncovered WP_Error in move_dir(). 2023-02-07 03:15:49 +00:00
wpOpcacheInvalidateDirectory.php Filesystem API: Add directory support to WP_Filesystem_Direct::move(). 2023-02-03 01:48:36 +00:00