Class FileTransferSpecification
A specification of files to be transferred between two different StorageSpecification
Inheritance
Namespace: DNVGL.One.Compute.Core.FlowModel.DataTransfer
Assembly: DNVGL.One.Compute.Core.dll
Syntax
public class FileTransferSpecification : object
Properties
View SourceDestinationSpecification
Gets or sets the destination specification.
Declaration
public StorageSpecification DestinationSpecification { get; set; }
Property Value
Type | Description |
---|---|
StorageSpecification | The destination specification. |
ExcludedFiles
Gets or sets the relative paths to files that should be excluded from data transfer. Paths must be relative to SourceSpecification. File patterns can be used, e.g. */.txt to match any .txt file in any sub directory of the root. The Glob standard (https://en.wikipedia.org/wiki/Glob_(programming) is supported.
Declaration
public string[] ExcludedFiles { get; set; }
Property Value
Type | Description |
---|---|
System.String[] | The excluded files. |
SelectedFiles
Gets or sets the relative paths to files selected for data transfer. Paths must be relative to SourceSpecification. File patterns can be used, e.g. */.txt to match any .txt file in any sub directory of the root. The Glob standard (https://en.wikipedia.org/wiki/Glob_(programming) is supported.
Declaration
public string[] SelectedFiles { get; set; }
Property Value
Type | Description |
---|---|
System.String[] | The selected files. |
SourceSpecification
Gets or sets the source specification.
Declaration
public StorageSpecification SourceSpecification { get; set; }
Property Value
Type | Description |
---|---|
StorageSpecification | The source specification. |
Methods
View SourceTransferFilesToResultLake(IEnumerable<String>, IEnumerable<String>)
Creates a FileTransferSpecification for transferring files from the current directory to the Result Lake.
Declaration
public static FileTransferSpecification TransferFilesToResultLake(IEnumerable<string> selectedFiles = null, IEnumerable<string> excludedFiles = null)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<System.String> | selectedFiles | The files selected to be transferred. If null, all files will be selected. |
IEnumerable<System.String> | excludedFiles | The files excluded from transfer. If null, no files will be excluded. |
Returns
Type | Description |
---|---|
FileTransferSpecification | A FileTransferSpecification that specifies files to be transferred from the current directory to the Result Lake. |