Class QAbstractStorageEntry
Represents an entry (file or folder) in a storage. This class is abstract, use one of the final implementations: QBucketEntry.
Inherited Members
Namespace: QarnotSDK
Assembly: QarnotSDK.dll
Syntax
public abstract class QAbstractStorageEntry
Properties
Digest
The digest for this entry content. Use EqualsLocalFileDigest or EqualsLocalFileDigestAsync to compare the digest to a local file.
Declaration
public virtual string Digest { get; protected set; }
Property Value
Type | Description |
---|---|
string |
FileFlags
The flags for this entry, use it to identify folders, files and executable files.
Declaration
public virtual FileFlags FileFlags { get; protected set; }
Property Value
Type | Description |
---|---|
FileFlags |
Name
Full name of this entry.
Declaration
public virtual string Name { get; protected set; }
Property Value
Type | Description |
---|---|
string |
Size
Size of this entry in bytes.
Declaration
public virtual long Size { get; protected set; }
Property Value
Type | Description |
---|---|
long |
Methods
EqualsLocalFileDigest(string, CancellationToken)
Computes the digest of a local file and compares it to the digest of this storage entry.
Declaration
public virtual bool EqualsLocalFileDigest(string localFilePath, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | localFilePath | The local file to compare to. |
CancellationToken | cancellationToken | A token to cancel the request. |
Returns
Type | Description |
---|---|
bool |
EqualsLocalFileDigestAsync(string, CancellationToken)
Computes the digest of a local file and compares it to the digest of this storage entry.
Declaration
public abstract Task<bool> EqualsLocalFileDigestAsync(string localFilePath, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | localFilePath | The local file to compare to. |
CancellationToken | cancellationToken | A token to cancel the request. |
Returns
Type | Description |
---|---|
Task<bool> |