Implemented IShare::append(), leave ::write() due backwards compatibility

This commit is contained in:
Robin Appelman 2018-08-28 16:21:15 +02:00
commit 59519bad2c
5 changed files with 79 additions and 5 deletions

View file

@ -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