Skip to main content

LogsUploader

A class in Root.Township, the global namespace.

Packs the log folder into one gzip file. Despite the name it uploads nothing.

Constructors​

MemberWhat it is
LogsUploader()Creates a LogsUploader with default values.

Methods​

MemberWhat it is
async void UploadLogs()Packs the Logs folder under persistent data into a file named Logs inside that folder.
2 private and internal methods
MemberWhat it is
private static void CompressDirectory(string sInDir, string sOutFile)Writes every file in a folder into one gzip stream, each as its relative path and its bytes.
private static void CompressFile(string sDir, string sRelativePath, GZipStream zipStream)Writes one file's path length, path and contents to the gzip stream.