Simply creates the directory structure necessary for writing files when running in standalone mode.
This commit is contained in:
Родитель
29d8fcd34c
Коммит
be3e045096
|
@ -65,6 +65,7 @@ namespace AutoRest.CSharp.V3.JsonRpc.MessageModels
|
|||
}
|
||||
filename = Path.Combine(_basePath, filename);
|
||||
Console.WriteLine($"Writing {filename} {artifactType}");
|
||||
(new FileInfo(filename)).Directory?.Create();
|
||||
await File.WriteAllTextAsync(filename, content);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче