YANA 4 PHP Framework
Docs For Class DirStream
Manipulate a directory
This class represents a directory. You may use this to get a list of contents, or remove, or create a directory.
Located in /includes/class_dirstream.php
Object | --InputStream | --DirStream
Name | Type | Description |
---|---|---|
$mode | int | access mode |
Tries to create the directory. Check the developer's cookbook for an example to this function.
Name | Type | Description |
---|---|---|
$is_recursive | boolean | triggers wether to remove directories even if they are not empty, default = false |
By option you may choose to also recursivly remove all files and subdirectories inside. Otherwise the directory will only be removed if it is empty.
Name | Type | Description |
---|---|---|
$filter | string |
The argument $filter may contain multiple file extension, use a pipe '|' sign to seperate them. Example: "*.xml|*.html" will find all xml- and html-files
Redefinition of: InputStream::exists()
NOTE: will only return filenames with the path stripped
Redefinition of: InputStream::get()
Returns bool(true) if there are no files that match the current filter and bool(true) if there is at least 1 file that matches.
This returns a positive integer. Note that this functions counts the files in respect to the currently set file filter. So the number of files reported here and the number in total may vary.
Returns a string with the contents of this directory
Redefinition of: Object::toString()
Inherited From InputStream
Inherited From Object
Documentation generated on Wed, 22 Nov 2006 20:19:04 +0100 by phpDocumentor 1.3.1