FileTransferConflict record

Namespace Runic.Platform in Runic.Platform 0.23.0

public sealed record FileTransferConflict : IEquatable<FileTransferConflict>

Inherits or implements IEquatable.

A source whose name an entry of the destination already has.

Parameters

SourcePath

The source being transferred, a top-level source or an entry inside a merged directory.

DestinationPath

The existing entry.

Source

What the source is.

Destination

What the existing entry is.

Constructors

FileTransferConflict

public FileTransferConflict(string SourcePath, string DestinationPath, FileEntryInfo Source, FileEntryInfo Destination)

A source whose name an entry of the destination already has.

Parameters

SourcePath

The source being transferred, a top-level source or an entry inside a merged directory.

DestinationPath

The existing entry.

Source

What the source is.

Destination

What the existing entry is.

Properties

CanMerge

public bool CanMerge { get; }

Whether both are directories, so that FileConflictAction.Merge is possible.

Destination

public FileEntryInfo Destination { get; init; }

What the existing entry is.

DestinationPath

public string DestinationPath { get; init; }

The existing entry.

Source

public FileEntryInfo Source { get; init; }

What the source is.

SourcePath

public string SourcePath { get; init; }

The source being transferred, a top-level source or an entry inside a merged directory.