[ Index ] |
|
Code source de Plume CMS 1.2.2 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 279 lignes (10 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
files:: (8 méthodes):
copyfolder()
listfiles()
copyfile()
createfolder()
is_success()
is_pathrelative()
unifypath()
real_path()
copyfolder($src, $dest, $overwrite=PX_FILES_OVERWRITE_FALSE, $chmodfiles=0666, $chmodfolders=0777, $log=false) X-Ref |
Copy the content of one folder into another. The folder is copied recursively. By default the files are not overwritten in the destination folder. The destination folder must exist. If storage is asked, the function must be called through an object, else the $log array is not available! The completely empty folders are not created. param: string Source folder param: string Destination folder param: int Overwrite (PX_FILES_OVERWRITE_FALSE) param: octal Default chmod for the files (0666) param: octal Default chmod for the folders (0777) param: bool Store the status of each file in the log (false) return: int Global error success code |
listfiles($folder, &$files, $regex='', $rec=true) X-Ref |
List all the files of a folder recursively by default. param: string Folder param: array Reference to the array to contain the files param: string Regex to catch only some files, comparison only on the file name ('') param: bool (true) do the recursive listing. return: int Error/success code |
copyfile($src, $dest, $chmod=0666, $overwrite=PX_FILES_OVERWRITE_FALSE) X-Ref |
Copy and chmod a file. Can overwrite the file if asked. No try to create the needed folders if not available. param: string Source file param: string Destination file param: int (octal) chmod the file (0666) param: int Overwrite the file (PX_FILES_OVERWRITE_FALSE) return: int Success/error code |
createfolder($folder, $chmod=0777) X-Ref |
Create folder recursively if needed. param: string Folder to create absolute path needed param: int (octal) Chmod for the newly created folders (0777) return: int Success/error code |
is_success($code) X-Ref |
Convert a success/error code into a BOOL param: int error/success code return: BOOL error or success |
is_pathrelative($dir) X-Ref |
Pas de description |
unifypath($path) X-Ref |
Pas de description |
real_path($path) X-Ref |
Pas de description |
Généré le : Mon Nov 26 11:57:01 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |