mirror of
https://codeberg.org/icewind/streams.git
synced 2026-06-03 16:44:07 +02:00
allow getting source stream
This commit is contained in:
parent
0c6aae16eb
commit
e4e3221e14
1 changed files with 6 additions and 0 deletions
|
|
@ -94,6 +94,8 @@ abstract class Wrapper extends WrapperHandler implements File, Directory {
|
||||||
public function stream_close() {
|
public function stream_close() {
|
||||||
if (is_resource($this->source)) {
|
if (is_resource($this->source)) {
|
||||||
return fclose($this->source);
|
return fclose($this->source);
|
||||||
|
} else {
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -109,4 +111,8 @@ abstract class Wrapper extends WrapperHandler implements File, Directory {
|
||||||
public function dir_rewinddir() {
|
public function dir_rewinddir() {
|
||||||
return rewind($this->source);
|
return rewind($this->source);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getSource() {
|
||||||
|
return $this->source;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue