PHP Class yupe\helpers\YFile

Inheritance: extends CFileHelpe\CFileHelper
Exibir arquivo Open project: yupe/yupe Class Usage Examples

Public Methods

Method Description
checkPath ( $path, integer $rights = 511, boolean $recursive = true ) : boolean
cpFile ( $from, $to ) : boolean
getTranslatedName ( $word ) : mixed | string
pathIsWritable ( $name, $ext, $path ) : boolean | string
rmDir ( $path ) : boolean Рекрусивное удаление директорий.
rmFile ( $file ) : boolean
rmIfExists ( $file ) : boolean

Method Details

checkPath() public static method

public static checkPath ( $path, integer $rights = 511, boolean $recursive = true ) : boolean
$path
$rights integer
$recursive boolean
return boolean

cpFile() public static method

Since: 0.8
public static cpFile ( $from, $to ) : boolean
$from
$to
return boolean

getTranslatedName() public static method

public static getTranslatedName ( $word ) : mixed | string
$word
return mixed | string

pathIsWritable() public static method

public static pathIsWritable ( $name, $ext, $path ) : boolean | string
$name
$ext
$path
return boolean | string

rmDir() public static method

Рекрусивное удаление директорий.
Since: 0.5
public static rmDir ( $path ) : boolean
$path Если $path оканчивается на *, то удаляется только содержимое директории.
return boolean

rmFile() public static method

Since: 0.8
public static rmFile ( $file ) : boolean
$file
return boolean

rmIfExists() public static method

public static rmIfExists ( $file ) : boolean
$file
return boolean