PHPDaemon\FS\FileSystem::rmdir PHP Méthode

rmdir() public static méthode

Removes empty directory
public static rmdir ( string $path, callable $cb = null, integer $pri = EIO_PRI_DEFAULT ) : resource | boolean
$path string Path
$cb callable Callback
$pri integer Priority
Résultat resource | boolean
    public static function rmdir($path, $cb = null, $pri = EIO_PRI_DEFAULT)
    {
        $cb = CallbackWrapper::forceWrap($cb);
        if (!FileSystem::$supported) {
            $r = rmdir($path);
            if ($cb) {
                $cb($path, $r);
            }
            return $r;
        }
        return eio_rmdir($path, $pri, $cb, $path);
    }