<?php ftp_rmdir(FTP\Connection $ftp, string $directory): bool
<?php function ftp_rmdir(...$arguments) { if ( ! is_mocked('ftp_rmdir')) { return \ftp_rmdir(...$arguments); } return return_mocked_value('ftp_rmdir');
<?php rsort($directories); foreach ($directories as $directory) { if ( ! @ftp_rmdir($connection, $this->prefixer->prefixPath($directory))) { throw UnableToDeleteDirectory::atLocation($path, "Could not delete directory $directory"); } }