Allows a folder on the host system to be treated as an IFolder.
Inheritance: Folder
		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
		}
Beispiel #2
0
        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
        }