File::copyDirectory PHP Method

copyDirectory() public static method

Copy a directory from one location to another.
public static copyDirectory ( string $directory, string $destination, integer $options = null ) : boolean
$directory string
$destination string
$options integer
return boolean
        public static function copyDirectory($directory, $destination, $options = null)
        {
            return \Illuminate\Filesystem\Filesystem::copyDirectory($directory, $destination, $options);
        }

Usage Example

Example #1
0
 /**
  * @covers Kotchasan\File::makeDirectory
  * @todo   Implement testMakeDirectory().
  */
 public function testFile()
 {
     $this->object->makeDirectory('temp/');
     $this->object->makeDirectory('temp/test/');
     $f = fopen('temp/test/index.php', 'w');
     fclose($f);
     $this->object->copyDirectory('temp/test/', 'temp/');
     $result = array();
     $this->object->listFiles('temp/test/', $result);
     $this->object->removeDirectory('temp/');
     $this->assertEquals(array('temp/test/index.php'), $result);
 }
All Usage Examples Of File::copyDirectory