mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Don't generate report files with '/', '\\' or '?' characters.
This commit is contained in:
@@ -80,6 +80,8 @@ namespace DiscImageChef.Commands
|
||||
else
|
||||
xmlFile = dev.Model + ".xml";
|
||||
|
||||
xmlFile = xmlFile.Replace('\\', '_').Replace('/', '_').Replace('?', '_');
|
||||
|
||||
switch(dev.Type)
|
||||
{
|
||||
case DeviceType.ATA:
|
||||
@@ -87,10 +89,10 @@ namespace DiscImageChef.Commands
|
||||
break;
|
||||
case DeviceType.MMC:
|
||||
case DeviceType.SecureDigital:
|
||||
Core.Devices.Report.ATA.Report(dev, ref report, options.Debug, ref removable);
|
||||
Core.Devices.Report.SecureDigital.Report(dev, ref report, options.Debug, ref removable);
|
||||
break;
|
||||
case DeviceType.NVMe:
|
||||
Core.Devices.Report.ATA.Report(dev, ref report, options.Debug, ref removable);
|
||||
Core.Devices.Report.NVMe.Report(dev, ref report, options.Debug, ref removable);
|
||||
break;
|
||||
case DeviceType.ATAPI:
|
||||
case DeviceType.SCSI:
|
||||
|
||||
Reference in New Issue
Block a user