コード例 #1
0
        public async Task SaveFiasCompleteDbfFileAsync(string fileToSave)
        {
            FileInfo fileToSaveInfo = new FileInfo(fileToSave);

            if (fileToSaveInfo.Directory != null)
            {
                if (!fileToSaveInfo.Directory.Exists)
                {
                    fileToSaveInfo.Directory.Create();
                }
            }

            await _apiHelper.DownloadFileAsync(FiasCompleteDbfUrl, fileToSave);
        }