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:
@@ -221,7 +221,13 @@ namespace DiscImageChef.Filters
|
|||||||
|
|
||||||
public override string GetFilename()
|
public override string GetFilename()
|
||||||
{
|
{
|
||||||
return basePath != null ? Path.GetFileName(basePath) : null;
|
if(basePath == null)
|
||||||
|
return null;
|
||||||
|
if(basePath.EndsWith(".bz2", StringComparison.InvariantCultureIgnoreCase))
|
||||||
|
return basePath.Substring(0, basePath.Length - 4);
|
||||||
|
if(basePath.EndsWith(".bzip2", StringComparison.InvariantCultureIgnoreCase))
|
||||||
|
return basePath.Substring(0, basePath.Length - 6);
|
||||||
|
return basePath;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string GetParentFolder()
|
public override string GetParentFolder()
|
||||||
|
|||||||
@@ -225,7 +225,13 @@ namespace DiscImageChef.Filters
|
|||||||
|
|
||||||
public override string GetFilename()
|
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()
|
public override string GetParentFolder()
|
||||||
|
|||||||
@@ -193,7 +193,13 @@ namespace DiscImageChef.Filters
|
|||||||
|
|
||||||
public override string GetFilename()
|
public override string GetFilename()
|
||||||
{
|
{
|
||||||
return basePath != null ? Path.GetFileName(basePath) : null;
|
if(basePath == null)
|
||||||
|
return null;
|
||||||
|
if(basePath.EndsWith(".lz", StringComparison.InvariantCultureIgnoreCase))
|
||||||
|
return basePath.Substring(0, basePath.Length - 3);
|
||||||
|
if(basePath.EndsWith(".lzip", StringComparison.InvariantCultureIgnoreCase))
|
||||||
|
return basePath.Substring(0, basePath.Length - 5);
|
||||||
|
return basePath;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string GetParentFolder()
|
public override string GetParentFolder()
|
||||||
|
|||||||
@@ -240,7 +240,13 @@ namespace DiscImageChef.Filters
|
|||||||
|
|
||||||
public override string GetFilename()
|
public override string GetFilename()
|
||||||
{
|
{
|
||||||
return basePath != null ? Path.GetFileName(basePath) : null;
|
if(basePath == null)
|
||||||
|
return null;
|
||||||
|
if(basePath.EndsWith(".xz", StringComparison.InvariantCultureIgnoreCase))
|
||||||
|
return basePath.Substring(0, basePath.Length - 3);
|
||||||
|
if(basePath.EndsWith(".xzip", StringComparison.InvariantCultureIgnoreCase))
|
||||||
|
return basePath.Substring(0, basePath.Length - 5);
|
||||||
|
return basePath;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string GetParentFolder()
|
public override string GetParentFolder()
|
||||||
|
|||||||
Reference in New Issue
Block a user