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