/** * Remove a directory only if it is empty * * @param string $path Path of the target directory * @return void */ public static function removeBlankDir($path) { $path = self::getRealPath($path); if (Rhymix\Framework\Storage::isEmptyDirectory($path)) { return Rhymix\Framework\Storage::deleteDirectory($path); } else { return false; } }