Skip to content

Commit

Permalink
Add trailing slash for deleteDir
Browse files Browse the repository at this point in the history
  • Loading branch information
vasileknik76 authored and Nikita Vasilchenko committed Sep 3, 2020
1 parent b5c3c75 commit 5ad974f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/WebDAVAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,8 @@ public function createDir($path, Config $config)
*/
public function deleteDir($dirname)
{
return $this->delete($dirname);
$path = rtrim($dirname, $this->pathSeparator) . $this->pathSeparator;
return $this->delete($path);
}

/**
Expand Down

0 comments on commit 5ad974f

Please sign in to comment.