in tool/TeamCity.Docker/FileSystem.cs [84:98]
public void WriteLines(string path, IEnumerable<string> lines)
{
if (path == null)
{
throw new ArgumentNullException(nameof(path));
}
if (lines == null)
{
throw new ArgumentNullException(nameof(lines));
}
Directory.CreateDirectory(Path.GetDirectoryName(path) ?? ".");
File.WriteAllLines(path, lines);
}