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
|
|
@ -13,6 +13,7 @@ use Icewind\SMB\Exception\DependencyException;
|
|||
use Icewind\SMB\Exception\FileInUseException;
|
||||
use Icewind\SMB\Exception\InvalidTypeException;
|
||||
use Icewind\SMB\Exception\NotFoundException;
|
||||
use Icewind\SMB\Exception\InvalidRequestException;
|
||||
use Icewind\SMB\IFileInfo;
|
||||
use Icewind\SMB\INotifyHandler;
|
||||
use Icewind\SMB\IServer;
|
||||
|
|
@ -342,6 +343,17 @@ class Share extends AbstractShare {
|
|||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Append on wrapped smbclient not supported
|
||||
*
|
||||
* @param string $source
|
||||
*
|
||||
* @throws \Icewind\SMB\Exception\InvalidRequestException
|
||||
*/
|
||||
public function append($source) {
|
||||
throw new InvalidRequestException("Not supported, use Icewind\SMB\Native\NativeShare");
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $path
|
||||
* @param int $mode a combination of FileInfo::MODE_READONLY, FileInfo::MODE_ARCHIVE, FileInfo::MODE_SYSTEM and FileInfo::MODE_HIDDEN, FileInfo::NORMAL
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue