EAImvertor.EAImvertorJob.downloadZip C# (CSharp) Method

downloadZip() private method

private downloadZip ( ) : void
return void
        void downloadZip()
        {
            HttpClient httpclient = settings.getHttpClient();

            byte[] bytArray = httpclient.GetByteArrayAsync(_zipUrl).Result;
            //get the file name from the zipurl
            string filename = _zipUrl.Split('/').Last();
            string downloadFile = this.settings.resultsPath +@"\"+ filename;
            //creat the directory if needed
            Directory.CreateDirectory(this.settings.resultsPath);
            //save the file
            File.WriteAllBytes(downloadFile,bytArray);
            this._downloadPath = downloadFile;
        }