PHP Class Pommo_Filesystem_File, poMMo

Inheritance: extends Pommo_Filesystem_Item
Exibir arquivo Open project: soonick/poMMo Class Usage Examples

Public Methods

Method Description
copy ( $destination ) : boolean Copies this file/directory and all its children to $destination
delete ( ) : boolean Deletes this file or Directory
getExtension ( ) : string Returns the filename extension
getFileSize ( boolean $humanReadable = false ) : integer | string Gets the exact file size in bytes or the human readable file size

Method Details

copy() public method

Copies this file/directory and all its children to $destination
public copy ( $destination ) : boolean
$destination
return boolean Success or Failure

delete() public method

Deletes this file or Directory
public delete ( ) : boolean
return boolean Success or Failure

getExtension() public method

Returns the filename extension
public getExtension ( ) : string
return string

getFileSize() public method

Gets the exact file size in bytes or the human readable file size
public getFileSize ( boolean $humanReadable = false ) : integer | string
$humanReadable boolean
return integer | string