mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
Implemented IShare::append(), leave ::write() due backwards compatibility
This commit is contained in:
parent
bebed6f456
commit
59519bad2c
5 changed files with 79 additions and 5 deletions
|
|
@ -52,6 +52,7 @@ interface IShare {
|
|||
|
||||
/**
|
||||
* Open a writable stream to a remote file
|
||||
* Note: This method will truncate the file to 0bytes
|
||||
*
|
||||
* @param string $target
|
||||
* @return resource a write only stream to upload a remote file
|
||||
|
|
@ -61,6 +62,18 @@ interface IShare {
|
|||
*/
|
||||
public function write($target);
|
||||
|
||||
/**
|
||||
* Open a writable stream to a remote file and set the cursor to the end of the file
|
||||
*
|
||||
* @param string $target
|
||||
* @return resource a write only stream to upload a remote file
|
||||
*
|
||||
* @throws \Icewind\SMB\Exception\NotFoundException
|
||||
* @throws \Icewind\SMB\Exception\InvalidTypeException
|
||||
* @throws \Icewind\SMB\Exception\InvalidRequestException
|
||||
*/
|
||||
public function append($target);
|
||||
|
||||
/**
|
||||
* Rename a remote file
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue