Changes between Version 3 and Version 4 of Ticket #57375, comment 2
- Timestamp:
- 12/23/2022 12:01:57 AM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #57375, comment 2
v3 v4 1 Overall, a +1 from me on implementing a function for the performant moving of directories. 2 3 ----- 1 4 Some additional information: 2 5 … … 22 25 == PHP's `rename()` under the hood 23 26 As 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.