Deployment\FtpServer::removeFile PHP Method

removeFile() public method

Removes file from FTP server if exists.
public removeFile ( $file ) : void
return void
    public function removeFile($file)
    {
        try {
            $this->ftp('delete', $file);
        } catch (FtpException $e) {
            if (in_array($file, (array) $this->ftp('nlist', $file . '*'))) {
                throw $e;
            }
        }
    }