From 89163474c9caff2953c344209c55107c7d40f3ea Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Mon, 21 Aug 2017 03:49:04 +0100 Subject: [PATCH] In Windows, there is no way to know if \\.\Whatever exists, that I know of. --- DiscImageChef/Commands/DeviceInfo.cs | 6 ------ DiscImageChef/Commands/DeviceReport.cs | 6 ------ DiscImageChef/Commands/DumpMedia.cs | 6 ------ DiscImageChef/Commands/MediaInfo.cs | 6 ------ DiscImageChef/Commands/MediaScan.cs | 6 ------ 5 files changed, 30 deletions(-) diff --git a/DiscImageChef/Commands/DeviceInfo.cs b/DiscImageChef/Commands/DeviceInfo.cs index 99e5ce401..f06bad455 100644 --- a/DiscImageChef/Commands/DeviceInfo.cs +++ b/DiscImageChef/Commands/DeviceInfo.cs @@ -49,12 +49,6 @@ namespace DiscImageChef.Commands DicConsole.DebugWriteLine("Device-Info command", "--device={0}", options.DevicePath); DicConsole.DebugWriteLine("Device-Info command", "--output-prefix={0}", options.OutputPrefix); - if(!File.Exists(options.DevicePath)) - { - DicConsole.ErrorWriteLine("Specified device does not exist."); - return; - } - if(options.DevicePath.Length == 2 && options.DevicePath[1] == ':' && options.DevicePath[0] != '/' && char.IsLetter(options.DevicePath[0])) { diff --git a/DiscImageChef/Commands/DeviceReport.cs b/DiscImageChef/Commands/DeviceReport.cs index 3e38c33ab..d1e8bcad0 100644 --- a/DiscImageChef/Commands/DeviceReport.cs +++ b/DiscImageChef/Commands/DeviceReport.cs @@ -46,12 +46,6 @@ namespace DiscImageChef.Commands DicConsole.DebugWriteLine("Device-Report command", "--verbose={0}", options.Verbose); DicConsole.DebugWriteLine("Device-Report command", "--device={0}", options.DevicePath); - if(!File.Exists(options.DevicePath)) - { - DicConsole.ErrorWriteLine("Specified device does not exist."); - return; - } - if(options.DevicePath.Length == 2 && options.DevicePath[1] == ':' && options.DevicePath[0] != '/' && char.IsLetter(options.DevicePath[0])) { diff --git a/DiscImageChef/Commands/DumpMedia.cs b/DiscImageChef/Commands/DumpMedia.cs index c51090143..6452cce73 100644 --- a/DiscImageChef/Commands/DumpMedia.cs +++ b/DiscImageChef/Commands/DumpMedia.cs @@ -66,12 +66,6 @@ namespace DiscImageChef.Commands DicConsole.DebugWriteLine("Dump-Media command", "--separate-subchannel={0}", options.SeparateSubchannel); DicConsole.DebugWriteLine("Dump-Media command", "--resume={0}", options.Resume); - if(!File.Exists(options.DevicePath)) - { - DicConsole.ErrorWriteLine("Specified device does not exist."); - return; - } - if(options.DevicePath.Length == 2 && options.DevicePath[1] == ':' && options.DevicePath[0] != '/' && char.IsLetter(options.DevicePath[0])) { diff --git a/DiscImageChef/Commands/MediaInfo.cs b/DiscImageChef/Commands/MediaInfo.cs index cff88f1c9..5200e4b2a 100644 --- a/DiscImageChef/Commands/MediaInfo.cs +++ b/DiscImageChef/Commands/MediaInfo.cs @@ -49,12 +49,6 @@ namespace DiscImageChef.Commands DicConsole.DebugWriteLine("Media-Info command", "--device={0}", options.DevicePath); DicConsole.DebugWriteLine("Media-Info command", "--output-prefix={0}", options.OutputPrefix); - if(!File.Exists(options.DevicePath)) - { - DicConsole.ErrorWriteLine("Specified device does not exist."); - return; - } - if(options.DevicePath.Length == 2 && options.DevicePath[1] == ':' && options.DevicePath[0] != '/' && char.IsLetter(options.DevicePath[0])) { diff --git a/DiscImageChef/Commands/MediaScan.cs b/DiscImageChef/Commands/MediaScan.cs index d341e3554..5f27684e1 100644 --- a/DiscImageChef/Commands/MediaScan.cs +++ b/DiscImageChef/Commands/MediaScan.cs @@ -47,12 +47,6 @@ namespace DiscImageChef.Commands DicConsole.DebugWriteLine("Media-Scan command", "--mhdd-log={0}", options.MHDDLogPath); DicConsole.DebugWriteLine("Media-Scan command", "--ibg-log={0}", options.IBGLogPath); - if(!System.IO.File.Exists(options.DevicePath)) - { - DicConsole.ErrorWriteLine("Specified device does not exist."); - return; - } - if(options.DevicePath.Length == 2 && options.DevicePath[1] == ':' && options.DevicePath[0] != '/' && char.IsLetter(options.DevicePath[0])) {