Public Method Details |
CDir |
public void CDir( )
|
|
Constructor of class CDir.
|
Returns |
void |
|
Init |
public void Init( )
|
|
Reset $aFiles.
|
Returns |
void |
See Also |
$aFiles |
|
Read |
public void Read( string $sPath, [ string $sInclude, boolean $fRecursive, boolean $fFiles, boolean $fDirectories, string $sRoot, string $sExclude ] )
|
|
Read the directory structure and fill $aFiles.
|
Parameter |
|
string |
$sPath |
|
|
path of where to begin reading (note the last "/") |
|
|
string |
$sInclude |
= >>""<< |
|
regular expression for filtering path- and filenames |
|
|
boolean |
$fRecursive |
= >>false<< |
|
go down the whole structure or not |
|
|
boolean |
$fFiles |
= >>true<< |
|
result set will contain entries which are files |
|
|
boolean |
$fDirectories |
= >>true<< |
|
result set will contain entries which are directories |
|
|
string |
$sRoot |
= >>""<< |
|
root path, will be appended to the entries |
|
|
string |
$sExclude |
= >>""<< |
|
regular expression for filtering path- and filenames |
|
Returns |
void |
See Also |
$aFiles |
|
Output |
public void Output( )
|
|
Output list with all info about $aFiles.
|
Returns |
void |
See Also |
$aFiles |
|
OutputFile |
public void OutputFile( array $aFile )
|
|
Output one item of $aFiles.
|
Parameter |
|
array |
$aFile |
|
|
one item of $aFiles |
|
Returns |
void |
See Also |
$aFiles |
|
GetPath |
public string GetPath( array $aFile )
|
|
Return path of one item of $aFiles.
|
Parameter |
|
array |
$aFile |
|
|
one item of $aFiles |
|
Returns |
string path |
See Also |
$aFiles |
|
GetFile |
public string GetFile( array $aFile )
|
|
Return filename (without extension) of one item of $aFiles.
|
Parameter |
|
array |
$aFile |
|
|
one item of $aFiles |
|
Returns |
string filename without extension |
See Also |
$aFiles |
|
GetExtension |
public string GetExtension( array $aFile )
|
|
Return extension of one item of $aFiles.
|
Parameter |
|
array |
$aFile |
|
|
one item of $aFiles |
|
Returns |
string extension |
See Also |
$aFiles |
|
GetIsDirectory |
public boolean GetIsDirectory( array $aFile )
|
|
Return whether item is a directory or not.
|
Parameter |
|
array |
$aFile |
|
|
one item of $aFiles |
|
Returns |
boolean whether item is a directory or not |
See Also |
$aFiles |
|
GetIsFile |
public boolean GetIsFile( array $aFile )
|
|
Return whether item is a file or not.
|
Parameter |
|
array |
$aFile |
|
|
one item of $aFiles |
|
Returns |
boolean whether item is a file or not |
See Also |
$aFiles |
|
FullName |
public string FullName( array $aFile )
|
|
Return full name (including path) of one item of $aFiles.
|
Parameter |
|
array |
$aFile |
|
|
one item of $aFiles |
|
Returns |
string full name (including path) |
See Also |
$aFiles |
|
FileName |
public string FileName( array $aFile )
|
|
Return filename (with extension) of one item of $aFiles.
|
Parameter |
|
array |
$aFile |
|
|
one item of $aFiles |
|
Returns |
string filename with extension |
See Also |
$aFiles |
|
DirectoryName |
public string DirectoryName( array $aFile )
|
|
Return filename (with extension) of one item of $aFiles.
Note: if the current item is a directory, the trailing "/" will be left out.
|
Parameter |
|
array |
$aFile |
|
|
one item of $aFiles |
|
Returns |
string filename with extension (without trailing "/") |
See Also |
$aFiles |
|