/// <exception cref="IOException" /> /// <exception cref="UnauthorizedAccessException" /> void CreateCustomDevices(AbsoluteDirectoryPath projDir) { using (var stream = _fileSystem.Create(CustomDevicesFile(projDir))) { Stage.Devices.SaveDefaultDevices(stream); } }
public static void DeleteIfExistsAndCreateDirectory(this IShell shell, AbsoluteDirectoryPath directory) { if (shell.Exists(directory)) { shell.Delete(directory); } shell.Create(directory); }