static void createDirectory(
$name, [
$rights = _BIGACE_DEFAULT_RIGHT_DIRECTORY], [
$mask = _BIGACE_DEFAULT_UMASK_DIRECTORY]
)
|
|
Creates a directory with the preconfigured rights.
Returns TRUE if the Directory already exists OR if the Directoty was created!
Parameters:
static boolean deleteFile(
$filename
)
|
|
Tries to delete the given File or Directory.
Directories will be deleted recursive. If any file could not be deleted, the method stops immediately and returns false. If all files could be deleted, it returns true. You should perofrm a check for file_exists() after an delete attempt.
Parameters:
API Tags:
| Return: | whether all files could be deleted (recursive) or not |
static void getFilesFromDirectory(
$directory, [
$fileExtension = ''], [
$includeDir = true]
)
|
|
Returns an Array of all Files from a given Directory with the defined File Extension.
If no File Extension is given we return all found Files. If the Last parameter is set, we return the full Filename including the Directory, otherwise we return only the File name itself.
Parameters:
|
|
$directory: |
|
|
|
$fileExtension: |
|
|
|
$includeDir: |
|
API Tags:
static void get_file_contents(
$file
)
|
|
Parameters: