File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -317,16 +317,7 @@ private DriveType GetDriveType(DriveInfo drive)
317
317
break ;
318
318
319
319
case System . IO . DriveType . Fixed :
320
- if ( Helpers . PathNormalization . NormalizePath ( drive . Name ) != Helpers . PathNormalization . NormalizePath ( "A:" )
321
- && Helpers . PathNormalization . NormalizePath ( drive . Name ) !=
322
- Helpers . PathNormalization . NormalizePath ( "B:" ) )
323
- {
324
- type = DriveType . Fixed ;
325
- }
326
- else
327
- {
328
- type = DriveType . FloppyDisk ;
329
- }
320
+ type = DriveType . Fixed ;
330
321
break ;
331
322
332
323
case System . IO . DriveType . Network :
@@ -346,7 +337,15 @@ private DriveType GetDriveType(DriveInfo drive)
346
337
break ;
347
338
348
339
case System . IO . DriveType . Unknown :
349
- type = DriveType . Unknown ;
340
+ if ( Helpers . PathNormalization . NormalizePath ( drive . Name ) != Helpers . PathNormalization . NormalizePath ( "A:" ) &&
341
+ Helpers . PathNormalization . NormalizePath ( drive . Name ) != Helpers . PathNormalization . NormalizePath ( "B:" ) )
342
+ {
343
+ type = DriveType . Unknown ;
344
+ }
345
+ else
346
+ {
347
+ type = DriveType . FloppyDisk ;
348
+ }
350
349
break ;
351
350
352
351
default :
You can’t perform that action at this time.
0 commit comments