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