Rename by first copying files to destination and then deleting source files
The operation is considered successful so long as the source files were able to be copied to the destination. If source files cannot be deleted afterwards, the warning is logged, plus a warning notice is also shown when in debug mode.
Available since version 3.0.178.
// basic usage $bool = $files->renameCopy(string $oldName, string $newName); // usage with all arguments $bool = $files->renameCopy(string $oldName, string $newName, array $options = );
Old pathname, must be full disk path.
New pathname, must be full disk path OR can be basename to assume same path as $oldName.
See options for rename() method
Method can throw exceptions on error:
API reference based on ProcessWire core version 3.0.184