API17:JFile::copy
From Joomla! Documentation
JFile::copy
Description
Copies a file.
public static function copy (
$src
$dest
$path=null
$use_streams=false
)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $src | string | The path to the source file | |
| $dest | string | The path to the destination file | |
| $path | string | null | An optional base path to prefix to the file names |
| $use_streams | false |
- Returns boolean True on success
- Defined on line 77 of libraries/joomla/filesystem/file.php
- Since

- Referenced by
See also
JFile::copy source code on BitBucket
Class JFile
Subpackage Filesystem- Other versions of JFile::copy
User contributed notes
Code Examples