Method |
Description |
|
append ( string $file, mixed $content ) : boolean |
Appends new content to an existing file |
|
convert ( string $name, string $type = 'jpg' ) : string |
Convert the filename to a new extension |
|
dirname ( string $file = __FILE__ ) : string |
Just an alternative for dirname() to stay consistent |
|
extension ( $filename ) : string |
Gets the extension of a file |
|
filename ( $name ) : string |
Extracts the filename from a file path |
|
move ( string $old, string $new ) : boolean |
Moves a file to a new location |
|
name ( $name, boolean $remove_path = false ) : string |
Extracts the name from a file path or filename without extension |
|
nice_size ( integer $size ) : string |
Converts an integer size into a human readable format |
|
read ( string $file, mixed $parse = false ) : mixed |
Reads the content of a file |
|
remove ( string $file ) : boolean |
Deletes a file |
|
safe_name ( string $string ) : string |
Sanitize a filename to strip unwanted special characters |
|
size ( string $file, boolean $nice = false ) : mixed |
Returns the size of a file. |
|
write ( string $file, mixed $content, boolean $append = false ) : boolean |
Creates a new file |
|