mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
Use Storage::deleteEmptyDirectory() in FileHandler::removeEmptyDir()
This commit is contained in:
parent
3dc736817d
commit
2ef85c2555
1 changed files with 1 additions and 9 deletions
|
|
@ -208,15 +208,7 @@ class FileHandler
|
|||
*/
|
||||
public static function removeBlankDir($path)
|
||||
{
|
||||
$path = self::getRealPath($path);
|
||||
if (Rhymix\Framework\Storage::isEmptyDirectory($path))
|
||||
{
|
||||
return Rhymix\Framework\Storage::deleteDirectory($path);
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return Rhymix\Framework\Storage::deleteEmptyDirectory(self::getRealPath($path), false);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue