Class RarArchiveEntry

RarArchiveEntry class

Represents single file within archive.

public abstract class RarArchiveEntry : IArchiveFileEntry

Properties

NameDescription
CompressedSize { get; }Gets size of compressed file.
CreationTime { get; }Gets creation date and time.
IsDirectory { get; }Gets a value indicating whether the entry represents directory.
LastAccessTime { get; }Gets last access date and time.
ModificationTime { get; }Gets last modified date and time.
Name { get; }Gets name of the entry within archive.
UncompressedSize { get; }Gets size of original file.

Methods

NameDescription
Extract(Stream, string)Extracts the entry to the stream provided.
Extract(string, string)Extracts the entry to the filesystem by the path provided.
Open(string)Opens the entry for extraction and provides a stream with decompressed entry content.

Events

NameDescription
event ExtractionProgressedRaises when a portion of raw stream extracted.

Remarks

Cast a RarArchiveEntry instance to RarArchiveEntryEncrypted to determine whether the entry encrypted or not.

See Also