mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
style and error message fixes
This commit is contained in:
parent
83cea01c56
commit
aec9b6f2f8
2 changed files with 11 additions and 11 deletions
|
|
@ -263,17 +263,17 @@ class NativeShare extends AbstractShare {
|
|||
|
||||
/**
|
||||
* Open a writeable stream and set the cursor to the end of the stream
|
||||
*
|
||||
* @param string $source
|
||||
*
|
||||
* @param string $source
|
||||
* @return resource a writeable stream
|
||||
*
|
||||
* @throws \Icewind\SMB\Exception\NotFoundException
|
||||
* @throws \Icewind\SMB\Exception\InvalidTypeException
|
||||
*/
|
||||
* @throws \Icewind\SMB\Exception\InvalidTypeException
|
||||
*/
|
||||
public function append($source) {
|
||||
$url = $this->buildUrl($source);
|
||||
$handle = $this->getState()->open($url, "a");
|
||||
return NativeWriteStream::wrap($this->getState(), $handle, "a", $url);
|
||||
$url = $this->buildUrl($source);
|
||||
$handle = $this->getState()->open($url, "a");
|
||||
return NativeWriteStream::wrap($this->getState(), $handle, "a", $url);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -345,16 +345,16 @@ class Share extends AbstractShare {
|
|||
});
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* Append to stream
|
||||
* Note: smbclient does not support this (Use php-libsmbclient)
|
||||
*
|
||||
* @param string $target
|
||||
*
|
||||
* @throws \Icewind\SMB\Exception\DependencyException
|
||||
*
|
||||
* @throws \Icewind\SMB\Exception\DependencyException
|
||||
*/
|
||||
public function append($target) {
|
||||
throw new DependencyException('php-libsmbclient not installed');
|
||||
throw new DependencyException('php-libsmbclient is required for append');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue