Make WordPress Core

Changes between Version 3 and Version 4 of Ticket #57375, comment 2


Ignore:
Timestamp:
12/23/2022 12:01:57 AM (2 years ago)
Author:
costdev
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #57375, comment 2

    v3 v4  
     1Overall, a +1 from me on implementing a function for the performant moving of directories.
     2
     3-----
    14Some additional information:
    25
     
    2225== PHP's `rename()` under the hood
    2326As mentioned above, `rename()` updates the ''metadata''. However, when PHP's `rename( $from, $to )` is called with `$from` and `$to` on different drives, it uses a recursive copy. For anyone who has ever dragged and dropped a file/directory from one drive to another, you'll likely have noticed that this makes a copy on the second drive. This isn't a negative, but just a bit of extra information on how `rename()` handles this scenario for those interested.
    24 
    25 -----
    26 
    27 Overall, a +1 from me on implementing a function for the performant moving of directories.