Fixed a bug introduced with the refactoring and filename parsing changes.

git-svn-id: https://duplicati.googlecode.com/svn/trunk@1419 59da171f-624f-0410-aa54-27559c288bec
This commit is contained in:
kenneth@hexad.dk
2012-08-07 19:35:46 +00:00
parent a292998f96
commit 03758e68ec
@@ -181,11 +181,17 @@ namespace Duplicati.Library.Compression
foreach (IArchiveEntry e in m_archive.Entries)
{
if (prefix == null)
{
results.Add(e.FilePath);
}
else
{
if (e.FilePath.StartsWith(prefix, Duplicati.Library.Utility.Utility.ClientFilenameStringComparision))
results.Add(e.FilePath);
//Some old archives may have been created with windows style paths
else if (e.FilePath.Replace('\\', '/').StartsWith(prefix, Duplicati.Library.Utility.Utility.ClientFilenameStringComparision))
results.Add(e.FilePath);
}
}
return results.ToArray();