메소드 |
설명 |
|
copyFile ( string $source, string $destination_dir, string $destination_file, boolean $unique = true ) : string |
Copy a file from source to destination. If unique == true, then if
the destination exists, it will be renamed by appending an increamenting
counting number. |
|
createFolder ( string $newFolder ) : boolean |
Create a new folder. |
|
delFile ( string $file ) : boolean |
Delete a file. |
|
delFolder ( string $folder, boolean $recursive = false ) : boolean |
Delete folder(s), can delete recursively. |
|
escape ( string $filename ) : string |
Escape the filenames, any non-word characters will be
replaced by an underscore. |
|
fixPath ( string $path ) : string |
Append a / to the path if required. |
|
formatSize ( integer $size ) : string |
Format the file size, limits to Mb. |
|
makeFile ( string $pathA, string $pathB ) : string |
Similar to makePath, but the second parameter
is not only a path, it may contain say a file ending. |
|
makePath ( string $pathA, string $pathB ) : string |
Concat two paths together. Basically $pathA+$pathB |
|