Chilkat C# RarEntry Class Reference

RarEntry

Properties

public int CompressedSize {get; }

The compressed size in bytes of the file within the RAR archive. Directories have a compressed size of 0.

public int Crc {get; }

The CRC checksum.

public string Filename {get; }

The filename, which can include a relative directory path.

public bool IsDirectory {get; }

true if the entry is a directory, false if it is a file.

public bool IsReadOnly {get; }

true if the file permissions are set to read-only after extraction. Otherwise set to false for read-write.

public string LastErrorHtml {get; }

Error information in HTML format for the last method called.

public string LastErrorText {get; }

Error information in plain-text format for the last method called.

public string LastErrorXml {get; }

Error information in XML format for the last method called.

public DateTime LastModified {get; }

The last-modified date/time of the fille. When extracting, the file's last-mod date/time is set to this value.

public int UncompressedSize {get; }

The size (in bytes) of the file when uncompressed.

Methods

public bool SaveLastError(string filename);

Saves the last error information to an XML formatted file.

public bool Unrar(string dirPath);

Extracts the file to the dirPath specified.