Difference between revisions of "JFolder::copy"
From Joomla! Documentation
(Bulk upload by Doxiki2) |
m (preparing for archive only) |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
Copy a folder. | Copy a folder. | ||
− | + | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
<source lang="php"> | <source lang="php"> | ||
− | public static | + | public static function copy ( |
+ | $src | ||
+ | $dest | ||
+ | $path= '' | ||
+ | $force=false | ||
+ | $use_streams=false | ||
+ | ) | ||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 39: | Line 40: | ||
|boolean | |boolean | ||
|false | |false | ||
− | |Optionally force folder/file overwrites. | + | |Optionally force folder/file overwrites. |
|- | |- | ||
|$use_streams | |$use_streams | ||
Line 47: | Line 48: | ||
|- | |- | ||
|} | |} | ||
− | + | * '''Returns''' mixed object on failure or boolean True on success. | |
− | mixed object on failure or boolean True on success. | + | * '''Defined''' on line 36 of libraries/joomla/filesystem/folder.php |
− | + | * '''Since''' {{JVer|11.1 }} | |
− | libraries/joomla/filesystem/folder.php | + | * '''Referenced by''' |
− | + | ** [[API17:JInstaller::copyFiles|JInstaller::copyFiles]] | |
− | * [[JInstaller | ||
===See also=== | ===See also=== | ||
− | + | * {{JVer|11.1}} '''JFolder::copy source code''' on [[jplatform:filesystem/folder.php#cl-28|BitBucket]] | |
− | + | * {{JVer|11.1}} Class [[API17:JFolder|JFolder]] | |
− | + | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Filesystem|Filesystem]] | |
− | * | + | * [[API17:JFolder::copy|Other versions of JFolder::copy]] |
− | * [[JFolder::copy|Other versions of | + | |
− | + | ||
− | ===Examples=== | + | ===User contributed notes=== |
− | + | === Code Examples === | |
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JFolder::copy | category=JFolder::copy | ||
− | + | namespace=CodeExample | |
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
+ | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
− | <noinclude>[[Category: | + | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> |
Latest revision as of 22:03, 24 March 2017
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JFolder::copy[edit]
Description[edit]
Copy a folder.
public static function copy (
$src
$dest
$path= ''
$force=false
$use_streams=false
)
Parameter | Type | Default | Description |
---|---|---|---|
$src | string | The path to the source folder. | |
$dest | string | The path to the destination folder. | |
$path | string | An optional base path to prefix to the file names. | |
$force | boolean | false | Optionally force folder/file overwrites. |
$use_streams | false |
- Returns mixed object on failure or boolean True on success.
- Defined on line 36 of libraries/joomla/filesystem/folder.php
- Since
- Referenced by
See also[edit]
- JFolder::copy source code on BitBucket
- Class JFolder
- Subpackage Filesystem
- Other versions of JFolder::copy
User contributed notes[edit]
Code Examples[edit]