public bool DirectoryExists(string path)
{
path = RemoveRoot(path);
foreach (ZipEntry entry in _storage.Entries)
{
string normalizedEntry = VirtualFileUtils.NormalizePath(entry.FileName);
if (entry.IsDirectory && String.Compare(normalizedEntry, path, true) == 0)
return true;
if (normalizedEntry.Length > path.Length && normalizedEntry.StartsWith(path,StringComparison.CurrentCultureIgnoreCase))
return true;
}
return false;
}