Class Compressed
Inherited Members
Namespace: AutoCheck.Core.Connectors
Assembly: AutoCheck.Core.dll
Syntax
public class Compressed : Base
Constructors
| Improve this Doc View SourceCompressed(Utils.OS, String, String, String, Int32, String)
Declaration
public Compressed(Utils.OS remoteOS, string host, string username, string password, int port, string filePath)
Parameters
Type | Name | Description |
---|---|---|
Utils.OS | remoteOS | |
System.String | host | |
System.String | username | |
System.String | password | |
System.Int32 | port | |
System.String | filePath |
Compressed(Utils.OS, String, String, String, String)
Declaration
public Compressed(Utils.OS remoteOS, string host, string username, string password, string filePath)
Parameters
Type | Name | Description |
---|---|---|
Utils.OS | remoteOS | |
System.String | host | |
System.String | username | |
System.String | password | |
System.String | filePath |
Compressed(String)
Creates a new connector instance.
Declaration
public Compressed(string filePath)
Parameters
Type | Name | Description |
---|---|---|
System.String | filePath | A compressed file path. |
Properties
| Improve this Doc View SourceFileContent
Declaration
public MemoryStream FileContent { get; }
Property Value
Type | Description |
---|---|
MemoryStream |
FileType
Declaration
public ArchiveType FileType { get; }
Property Value
Type | Description |
---|---|
ArchiveType |
Methods
| Improve this Doc View SourceDispose()
Disposes the object releasing its unmanaged properties.
Declaration
public override void Dispose()
Overrides
| Improve this Doc View SourceExtract(Boolean, String, String)
Extracts the compressed file.
Declaration
public void Extract(bool recursive = false, string output = null, string password = null)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | recursive | Compressed files within the extracted one, will be also extracted. |
System.String | output | Destination folder for the extracted files. |
System.String | password | Compressed file's password. |
Extract(String, String)
Extracts the compressed file.
Declaration
public void Extract(string output, string password = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | output | Destination folder for the extracted files. |
System.String | password | Compressed file's password. |
Extension Methods
ObjectExtensions.DeepClone<T>(T)