mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
Fix catching rmdir on file
This commit is contained in:
parent
5f80502017
commit
1c2745ccf2
1 changed files with 1 additions and 1 deletions
|
|
@ -105,7 +105,7 @@ class NativeShare implements IShare {
|
|||
throw new AlreadyExistsException($errstr);
|
||||
} else if (strpos($errstr, 'Can\'t write to a directory') or
|
||||
strpos($errstr, 'use rmdir instead') or
|
||||
$errno === 20 // 20: ENOTDIR
|
||||
strpos($errstr, 'unknown error (20)') // 20: ENOTDIR
|
||||
) {
|
||||
throw new InvalidTypeException($errstr);
|
||||
} else if (strpos($errstr, 'Workgroup not found') or
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue