public override IEnumerable<IFileSystemNode> GetChildren() { #if KFS_LEAN_AND_MEAN return new List<FileSystemNode>(); #else if (IsZip) { ZipFile f = ZipFile.Read(new ForensicsAppStream(this)); string tempDir = Util.CreateTemporaryDirectory(); // TODO: Add progress bar here f.ExtractAll(tempDir, ExtractExistingFileAction.InvokeExtractProgressEvent); FolderMounted folder = new FolderMounted(tempDir, this); return folder.GetChildren(); } else { return new List<FileSystemNode>(); } #endif }
public override IEnumerable <IFileSystemNode> GetChildren() { #if KFS_LEAN_AND_MEAN return(new List <FileSystemNode>()); #else if (IsZip) { ZipFile f = ZipFile.Read(new ForensicsAppStream(this)); string tempDir = Util.CreateTemporaryDirectory(); // TODO: Add progress bar here f.ExtractAll(tempDir, ExtractExistingFileAction.InvokeExtractProgressEvent); FolderMounted folder = new FolderMounted(tempDir, this); return(folder.GetChildren()); } else { return(new List <FileSystemNode>()); } #endif }