mirror of
https://codeberg.org/icewind/streams.git
synced 2026-06-03 16:44:07 +02:00
Add directory filter
This commit is contained in:
parent
91176a6bf5
commit
f47297b76a
4 changed files with 112 additions and 16 deletions
|
|
@ -73,22 +73,6 @@ class DirectoryWrapper implements Directory {
|
|||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a directory handle from the provided array or iterator
|
||||
*
|
||||
* @param resource $source
|
||||
* @return resource
|
||||
*
|
||||
* @throws \BadMethodCallException
|
||||
*/
|
||||
public static function wrap($source) {
|
||||
$options = array(
|
||||
'dir' => array(
|
||||
'source' => $source)
|
||||
);
|
||||
return self::wrapWithOptions($options);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $options the options for the context to wrap the stream with
|
||||
* @return resource
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue