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
|
* 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
|
* @return resource a writeable stream
|
||||||
*
|
*
|
||||||
* @throws \Icewind\SMB\Exception\NotFoundException
|
* @throws \Icewind\SMB\Exception\NotFoundException
|
||||||
* @throws \Icewind\SMB\Exception\InvalidTypeException
|
* @throws \Icewind\SMB\Exception\InvalidTypeException
|
||||||
*/
|
*/
|
||||||
public function append($source) {
|
public function append($source) {
|
||||||
$url = $this->buildUrl($source);
|
$url = $this->buildUrl($source);
|
||||||
$handle = $this->getState()->open($url, "a");
|
$handle = $this->getState()->open($url, "a");
|
||||||
return NativeWriteStream::wrap($this->getState(), $handle, "a", $url);
|
return NativeWriteStream::wrap($this->getState(), $handle, "a", $url);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -345,16 +345,16 @@ class Share extends AbstractShare {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Append to stream
|
* Append to stream
|
||||||
* Note: smbclient does not support this (Use php-libsmbclient)
|
* Note: smbclient does not support this (Use php-libsmbclient)
|
||||||
*
|
*
|
||||||
* @param string $target
|
* @param string $target
|
||||||
*
|
*
|
||||||
* @throws \Icewind\SMB\Exception\DependencyException
|
* @throws \Icewind\SMB\Exception\DependencyException
|
||||||
*/
|
*/
|
||||||
public function append($target) {
|
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