mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-23 12:22:15 +09:00
Remove slashes before trying to delete empty directories
This commit is contained in:
parent
3d82a21c16
commit
5f83192e5d
1 changed files with 1 additions and 0 deletions
|
|
@ -723,6 +723,7 @@ class Storage
|
|||
*/
|
||||
public static function deleteEmptyDirectory($dirname, $delete_empty_parents = false)
|
||||
{
|
||||
$dirname = rtrim($dirname, '/\\');
|
||||
if (!self::isDirectory($dirname) || !self::isEmptyDirectory($dirname))
|
||||
{
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue