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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user