PHP 클래스 Nette\Utils\FileSystem

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

공개 메소드들

메소드 설명
copy ( $source, $dest, $overwrite = TRUE ) : void Copies a file or directory.
createDir ( $dir, $mode = 511 ) : void Creates a directory.
delete ( $path ) : void Deletes a file or directory.
isAbsolute ( $path ) : boolean Is path absolute?
read ( $file ) : string Reads file content.
rename ( $name, $newName, $overwrite = TRUE ) : void Renames a file or directory.
write ( $file, $content, $mode = 438 ) : void Writes a string to a file.

메소드 상세

copy() 공개 정적인 메소드

Copies a file or directory.
public static copy ( $source, $dest, $overwrite = TRUE ) : void
리턴 void

createDir() 공개 정적인 메소드

Creates a directory.
public static createDir ( $dir, $mode = 511 ) : void
리턴 void

delete() 공개 정적인 메소드

Deletes a file or directory.
public static delete ( $path ) : void
리턴 void

isAbsolute() 공개 정적인 메소드

Is path absolute?
public static isAbsolute ( $path ) : boolean
리턴 boolean

read() 공개 정적인 메소드

Reads file content.
public static read ( $file ) : string
리턴 string

rename() 공개 정적인 메소드

Renames a file or directory.
public static rename ( $name, $newName, $overwrite = TRUE ) : void
리턴 void

write() 공개 정적인 메소드

Writes a string to a file.
public static write ( $file, $content, $mode = 438 ) : void
리턴 void