Skip to content

Commit 5ad974f

Browse files
vasileknik76Nikita Vasilchenko
authored and
Nikita Vasilchenko
committed
Add trailing slash for deleteDir
1 parent b5c3c75 commit 5ad974f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/WebDAVAdapter.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,8 @@ public function createDir($path, Config $config)
276276
*/
277277
public function deleteDir($dirname)
278278
{
279-
return $this->delete($dirname);
279+
$path = rtrim($dirname, $this->pathSeparator) . $this->pathSeparator;
280+
return $this->delete($path);
280281
}
281282

282283
/**

0 commit comments

Comments
 (0)