[wp-trac] [WordPress Trac] #54477: wp-cli vague: "Warning: Could not create directory."

WordPress Trac noreply at wordpress.org
Mon Oct 10 13:56:29 UTC 2022


#54477: wp-cli vague: "Warning: Could not create directory."
-------------------------------------------------+-------------------------
 Reporter:  gunterer                             |       Owner:  audrasjb
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  6.1
Component:  Upgrade/Install                      |     Version:  5.8
 Severity:  minor                                |  Resolution:  fixed
 Keywords:  good-first-bug has-patch has-        |     Focuses:
  testing-info commit                            |
-------------------------------------------------+-------------------------

Comment (by SergeyBiryukov):

 Replying to [comment:15 costdev]:
 > I couldn't find the other three appearances you referenced before.
 >
 > I see the two targeted by
 [https://core.trac.wordpress.org/attachment/ticket/54477/54477.v202204171752.patch
 54477.v202204171752.patch].
 >
 > Aside from that, there are these two instances:
 > {{{#!php
 > // wp-admin/includes/file.php:1924
 > return new WP_Error( 'mkdir_failed_copy_dir', __( 'Could not create
 directory.' ), $to . $filename );
 >
 > // wp-admin/includes/update-core.php:1524
 > return new WP_Error( 'mkdir_failed__copy_dir', __( 'Could not create
 directory.' ), $to . $filename );
 > }}}
 > However:
 > - The latter is planned for removal in #55712.
 > - `$to . $filename` = "Path to destination directory" + The key from
 `WP_Filesystem_*::dirlist`, so this doesn't appear to be associated with
 this issue.

 Right. I think the fifth one is defined in [source:tags/6.0.2/src/wp-
 admin/includes/class-wp-upgrader.php?marks=163#L148
 WP_Upgrader::generic_strings()] and displayed in [source:tags/6.0.2/src
 /wp-admin/includes/class-wp-upgrader.php?marks=591#L587
 ::install_package()], though it looks like it may not be related to this
 issue either, and [54442] appears to be enough here.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54477#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list