Table of Contents

Class SgaFolder

Namespace
OpenCompote.SGA
Assembly
OpenCompote.dll
public class SgaFolder : SgaEntry
Inheritance
SgaFolder
Inherited Members

Properties

Contents

Gets the collection of entries that are currently in the current folder.

public ReadOnlyCollection<SgaEntry> Contents { get; }

Property Value

ReadOnlyCollection<SgaEntry>

Methods

AddFile(string, StorageType)

Created an empty file in the current folder.

public SgaFile AddFile(string name, StorageType type)

Parameters

name string

The name of the new file.

type StorageType

The storage type of the new file.

Returns

SgaFile

New empty file.

Exceptions

NotSupportedException

The SGA archive for this drive was open in readonly mode.

ObjectDisposedException

The SGA archive for this folder has been disposed.

AddFolder(string)

Creates an empty subfolder in the current folder.

public SgaFolder AddFolder(string name)

Parameters

name string

The name of the folder to be created

Returns

SgaFolder

New empty subfolder.

Exceptions

NotSupportedException

The SGA archive for this drive was open in readonly mode.

ObjectDisposedException

The SGA archive for this entry has been disposed.

ExtractToDirectory(string, bool)

NOT IMPLEMENTED! DO NOT USE

public void ExtractToDirectory(string destination, bool overwrite = false)

Parameters

destination string
overwrite bool