copy() public method

Copy the file object directly to another file on disk.
public copy ( string $new, boolean $overwrite = false ) : File
$new string
$overwrite boolean
return File
Beispiel #1
0
 public function testCopyException()
 {
     $this->setExpectedException('Pop\\File\\Exception');
     $f = new File('access.txt');
     $f->copy(__DIR__ . '/../tmp/access.txt');
 }