mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
Add truncate support to native streams
This commit is contained in:
parent
9068418528
commit
3ae0f3dd0c
2 changed files with 14 additions and 0 deletions
|
|
@ -81,4 +81,8 @@ class NativeStream {
|
|||
public function stream_write($data) {
|
||||
return $this->state->write($this->handle, $data);
|
||||
}
|
||||
|
||||
public function stream_truncate($size) {
|
||||
return $this->state->ftruncate($this->handle, $size);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue