mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Filename should not include compressed extension.
This commit is contained in:
@@ -225,7 +225,13 @@ namespace DiscImageChef.Filters
|
||||
|
||||
public override string GetFilename()
|
||||
{
|
||||
return basePath != null ? Path.GetFileName(basePath) : null;
|
||||
if(basePath == null)
|
||||
return null;
|
||||
if(basePath.EndsWith(".gz", StringComparison.InvariantCultureIgnoreCase))
|
||||
return basePath.Substring(0, basePath.Length - 3);
|
||||
if(basePath.EndsWith(".gzip", StringComparison.InvariantCultureIgnoreCase))
|
||||
return basePath.Substring(0, basePath.Length - 5);
|
||||
return basePath;
|
||||
}
|
||||
|
||||
public override string GetParentFolder()
|
||||
|
||||
Reference in New Issue
Block a user