Methods summary
Modifier and Type | Method |
---|---|
public | __construct ( string path ) |
public | isAbsolute ( ) |
public | getName ( ) |
public string | getFileName ( ) |
public string | getExtension ( ) |
public bool | exists ( ) |
public boolean | isReadable ( ) |
public boolean | isWritable ( ) |
public boolean | isDir ( ) |
public boolean | isFile ( ) |
public | touch ( ) |
public | delete ( ) |
public | mkdirs ( string perm ) |
public FsPath | getParent ( ) |
public bool | createFile ( unknown perm ) |
public boolean | mkdirsAndCreateFile ( string dirPerm , string filePerm ) |
public | isEmpty ( ) |
public FsPath [] | getChildren ( string pattern = '*' ) |
public | getDecendents ( unknown pattern = '*' ) |
public array<FsPath> | getChildDirectories ( string pattern = '*' ) |
public boolean | containsChildDirectory ( string name ) |
public boolean | containsChildFile ( string name ) |
public int | getSize ( ) |
public string | __toString ( ) |
public FsPath | moveFile ( string fsPath , string filePerm , bool overwrite = false ) |
public FsPath | copyFile ( string fsPath , string filePerm , bool overwrite = false ) |
public | copy ( unknown fsPath , unknown dirPerm , unknown filePerm , unknown overwrite = false ) |
public | getMTime ( ) |
public | getLastMod ( ) |
public FsPath | createExtended ( mixed pathExt ) |
public FsPath | ext ( unknown pathExt ) |
public | chmod ( unknown perm ) |
public File | toFile ( ) |
public | equals ( unknown obj ) |
public static | create ( unknown expression ) |
Methods in detail
-
__construct
public __construct ( string path ) -
isAbsolute
public isAbsolute ( ) -
getName
public getName ( ) -
getFileName
string public getFileName ( )return
string -
getExtension
string public getExtension ( )return
string -
exists
bool public exists ( )Tests whether the file or directory denoted by this abstract pathname exists.return
bool -
isReadable
boolean public isReadable ( )return
boolean -
isWritable
boolean public isWritable ( )return
boolean -
isDir
boolean public isDir ( )return
boolean -
isFile
boolean public isFile ( )return
boolean -
touch
public touch ( ) -
delete
public delete ( ) -
mkdirs
public mkdirs ( string perm )param
string perm -
getParent
FsPath public getParent ( )Returns the abstract pathname of this abstract pathname's parent, or null if this pathname does not name a parent directory.return
-
createFile
bool public createFile ( unknown perm )Atomically creates a new, empty file named by this abstract path if and only if a file with this name does not yet exist.return
bool -
mkdirsAndCreateFile
boolean public mkdirsAndCreateFile ( string dirPerm , string filePerm )param
string filePermstring dirPermreturn
boolean -
isEmpty
public isEmpty ( ) -
getChildren
-
getDecendents
public getDecendents ( unknown pattern = '*' ) -
getChildDirectories
array<FsPath> public getChildDirectories ( string pattern = '*' )param
string patternreturn
n2n\io\fs\array<FsPath> -
containsChildDirectory
boolean public containsChildDirectory ( string name )param
string namereturn
boolean -
containsChildFile
boolean public containsChildFile ( string name )param
string namereturn
boolean -
getSize
int public getSize ( )return
int -
__toString
string public __toString ( )return
string -
moveFile
-
copyFile
-
copy
public copy ( unknown fsPath , unknown dirPerm , unknown filePerm , unknown overwrite = false ) -
getMTime
public getMTime ( ) -
getLastMod
public getLastMod ( ) -
createExtended
-
ext
-
chmod
public chmod ( unknown perm ) -
toFile
File public toFile ( )return
-
equals
public equals ( unknown obj ) -
create
public static create ( unknown expression )
param