Brimbox Logo Brimbox Version 2.3.4 Released

copy_directory>>

Method to copy one directory into another overwriting existing files and creating directories that don't exist.

Class: bb_main, called as $main

File: bb_main.php (php)

Declaration:

function copy_directory($from_directory, $to_directory)

Usage:

$main->copy_directory($from_directory, $to_directory);

Note: will overwrite files

Parameter: $from_directory (string, valid directory)
Directory to be copied from, usually a relative path.

Parameter: $to_directory (string, valid directory)
Directory to be copied to, usually a relative path.

Updated: 2016-06-16