PHP Class Filesystem, spaghettiphp

Show file Open project: spaghettiphp/spaghettiphp Class Usage Examples

Public Properties

Property Type Description
$rewrite

Public Methods

Method Description
copy ( $file, $destination )
createDir ( $dir, $mode = 420 )
delete ( $file, $deleteIfNotEmpty = true )
exists ( $file )
extension ( $file )
filename ( $file )
getFiles ( $path )
hasPermission ( $file, $permission = ['execute', 'read', 'write'] )
isDir ( $path )
isUploaded ( $file )
path ( $path, $absolute = true )
read ( $file )
rename ( $file, $newName )
size ( $file, $rewrite = true )
write ( $file, $content = '', $append = false ) @todo rewrite from scratch

Method Details

copy() public static method

public static copy ( $file, $destination )

createDir() public static method

public static createDir ( $dir, $mode = 420 )

delete() public static method

public static delete ( $file, $deleteIfNotEmpty = true )

exists() public static method

public static exists ( $file )

extension() public static method

public static extension ( $file )

filename() public static method

public static filename ( $file )

getFiles() public static method

public static getFiles ( $path )

hasPermission() public static method

public static hasPermission ( $file, $permission = ['execute', 'read', 'write'] )

isDir() public static method

public static isDir ( $path )

isUploaded() public static method

public static isUploaded ( $file )

path() public static method

public static path ( $path, $absolute = true )

read() public static method

public static read ( $file )

rename() public static method

public static rename ( $file, $newName )

size() public static method

public static size ( $file, $rewrite = true )

write() public static method

@todo rewrite from scratch
public static write ( $file, $content = '', $append = false )

Property Details

$rewrite public static property

public static $rewrite