mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-04 01:34:07 +02:00
Work around issue where 'allinfo' keeps the file open
This commit is contained in:
parent
6629a780b0
commit
ededbfbaa3
5 changed files with 57 additions and 6 deletions
|
|
@ -10,6 +10,7 @@ namespace Icewind\SMB;
|
|||
use Icewind\SMB\Exception\AccessDeniedException;
|
||||
use Icewind\SMB\Exception\AlreadyExistsException;
|
||||
use Icewind\SMB\Exception\Exception;
|
||||
use Icewind\SMB\Exception\FileInUseException;
|
||||
use Icewind\SMB\Exception\InvalidTypeException;
|
||||
use Icewind\SMB\Exception\NotEmptyException;
|
||||
use Icewind\SMB\Exception\NotFoundException;
|
||||
|
|
@ -55,6 +56,8 @@ class Parser {
|
|||
case ErrorCodes::FileIsADirectory:
|
||||
case ErrorCodes::NotADirectory:
|
||||
throw new InvalidTypeException($path);
|
||||
case ErrorCodes::SharingViolation:
|
||||
throw new FileInUseException($path);
|
||||
default:
|
||||
$message = 'Unknown error (' . $error . ')';
|
||||
if ($path) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue