PHP 클래스 Microweber\Utils\Files

파일 보기 프로젝트 열기: microweber/microweber 1 사용 예제들

공개 메소드들

메소드 설명
copy_directory ( $source, $destination ) Copies directory recursively.
dir_tree ( $path = '.', $params = false )
dir_tree_build ( $dir, $params = false )
download_to_browser ( $filename )
file_size_nice ( $size ) Returns a human readable filesize.
get ( array $params ) : mixed get_files.
rglob ( integer | string $pattern = '*', integer $flags, string $path = '' ) : mixed Recursive glob().
rmdir ( $dirPath )

비공개 메소드들

메소드 설명
_readfile_chunked ( $filename, $retbytes = true )
_readfile_laravel_chunked ( $path, $name = null, array $headers = [] )

메소드 상세

copy_directory() 공개 메소드

Copies directory recursively.
public copy_directory ( $source, $destination )
$source
$destination

dir_tree() 공개 메소드

public dir_tree ( $path = '.', $params = false )

dir_tree_build() 공개 메소드

public dir_tree_build ( $dir, $params = false )

download_to_browser() 공개 메소드

public download_to_browser ( $filename )

file_size_nice() 공개 메소드

Returns a human readable filesize.
저자: wesman20 (php.net)
저자: Jonas John
public file_size_nice ( $size )

get() 공개 메소드

Get an array that represents directory and files
부터: 0.320
public get ( array $params ) : mixed
$params array = array() the params
리턴 mixed Array with files

rglob() 공개 메소드

Recursive glob().
public rglob ( integer | string $pattern = '*', integer $flags, string $path = '' ) : mixed
$pattern integer | string the pattern passed to glob()
$flags integer the flags passed to glob()
$path string the path to scan
리턴 mixed an array of files in the given path matching the pattern.

rmdir() 공개 메소드

public rmdir ( $dirPath )