private void ImportArchives()
{
foreach (string path in Directory.GetFiles(_contentDir))
{
Debug.Assert(path != null);
var digest = new ManifestDigest();
digest.ParseID(Path.GetFileNameWithoutExtension(path));
if (digest.Best != null && !Store.Contains(digest))
{
try
{
Store.AddArchives(new[]
{
new ArchiveFileInfo
{
Path = path,
MimeType = Archive.GuessMimeType(path)
}
}, digest, Handler);
}
#region Error handling
catch (ImplementationAlreadyInStoreException)
{}
#endregion
}
}
}