Pop\Ftp\Ftp::rmdir PHP Method

rmdir() public method

Remove directory.
public rmdir ( string $dir ) : Ftp
$dir string
return Ftp
    public function rmdir($dir)
    {
        if (!ftp_mkdir($this->conn, $dir)) {
            throw new Exception('Error: There was an error removing the directory ' . $dir);
        }
        return $this;
    }