Table of Contents

Class NewFileEntry

Namespace
FishMMO.Patcher
Assembly
Updater.dll
public class NewFileEntry
Inheritance
NewFileEntry
Inherited Members

Properties

Encoding

How the archive entry is encoded: EncodingZstd for a zstd frame of the whole file (no reference); null for the raw bytes.

[JsonPropertyName("encoding")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string Encoding { get; set; }

Property Value

string

FileDataEntryName

[JsonPropertyName("file_data_entry_name")]
public string FileDataEntryName { get; set; }

Property Value

string

FileSize

The file's size once decoded. Required with an encoding.

[JsonPropertyName("file_size")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public long? FileSize { get; set; }

Property Value

long?

NewHash

[JsonPropertyName("new_hash")]
public string NewHash { get; set; }

Property Value

string

RelativePath

[JsonPropertyName("path")]
public string RelativePath { get; set; }

Property Value

string

UnixMode

POSIX permission bits the file should carry, or null when the generator could not record them (a Windows build host, or an older archive).

[JsonPropertyName("unix_mode")]
public int? UnixMode { get; set; }

Property Value

int?

Remarks

A file written by File.Create lands at 0644, so a newly shipped native binary or script arrives without its execute bit and cannot be run. When this is absent the updater falls back to inspecting the file's first bytes; see Program.ApplyModeForNewFile. Only the low nine bits are honoured — setuid, setgid and sticky are stripped, because an archive is not allowed to ask for them.