We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c681ae2 commit 1e38842Copy full SHA for 1e38842
src/ApiGenerator/RestSpecDownloader.cs
@@ -38,6 +38,12 @@ private RestSpecDownloader(string branch)
38
{
39
foreach (var spec in specifications)
40
41
+ var specFolderOnDisk = Path.Combine(GeneratorLocations.RestSpecificationFolder, spec.FolderOnDisk);
42
+ if (Directory.Exists(specFolderOnDisk))
43
+ {
44
+ Directory.Delete(specFolderOnDisk, true);
45
+ pbar.WriteLine($"Deleted target spec folder, before downloading new copy: {specFolderOnDisk}");
46
+ }
47
pbar.Message = $"Downloading rest-api-spec to {spec.FolderOnDisk} for branch {branch}";
48
DownloadJsonDefinitions(spec, pbar);
49
pbar.Tick($"Downloaded rest-api-spec to {spec.FolderOnDisk} for branch {branch}");
0 commit comments