Skip to main content

IRemoteAltaFile

An interface in Alta.IO, Alta.Utilities.

A local file mirrored to a remote copy, as used by RemoteFiles. RemoteFiles.BackupAllChanged backs up every changed one.

Properties​

MemberWhat it is
bool HasChanged { get; }True when the local file changed since its last backup.

Methods​

MemberWhat it is
void BackupInstant()Copies the local file to the remote synchronously, blocking until done. Used by BackupAllChanged when asked for an instant backup.
Task BackupToRemote()Starts an async copy of the local file to the remote and resets the changed flag on success. Refuses if a backup is already running.
Task EnsureCopied()Copies the remote file to local the first time it is called and waits for that copy.

Used in​

Members of other types that take, return or hold a IRemoteAltaFile: