Class QFolder
Class QFolder: Handles folders located on your filesystem.
Located at includes/framework/QFolder.class.php
public static
boolean
|
#
MakeDirectory( string $strPath, integer $intMode = null )
Same as mkdir but correctly implements directory recursion. At its core, it will use the php MKDIR function. This method does no special error handling. If you want to use special error handlers, be sure to set that up BEFORE calling MakeDirectory. |
public static
integer
|
#
DeleteFolder( string $strPath )
Allows for deletion of non-empty directories - takes care of recursion appropriately. |
public static
boolean
|
#
isWritable( string $strPath )
Tells whether a folder is writable or not. Uses the QFile method underneath |
public static
array
|
#
listFilesInFolder( string $strPath, boolean $blnSkipFolders = true, string $strFilenamePattern = null )
Traverse a particular path and get a list of files and folders underneath that path. Optionally, also provide a regular expression that specifies the pattern that the returned files must match. |