don't duplicate synced items

This commit is contained in:
Luke Pulverenti
2015-08-18 15:45:41 -04:00
parent 865b3b6fbe
commit ede3746ea7
5 changed files with 75 additions and 2 deletions

View File

@@ -63,4 +63,15 @@ namespace MediaBrowser.Controller.Sync
/// <returns>Task&lt;SyncedFileInfo&gt;.</returns>
Task<SyncedFileInfo> SendFile(string path, string[] pathParts, SyncTarget target, IProgress<double> progress, CancellationToken cancellationToken);
}
public interface IHasDuplicateCheck
{
/// <summary>
/// Allows the duplicate job item.
/// </summary>
/// <param name="original">The original.</param>
/// <param name="duplicate">The duplicate.</param>
/// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns>
bool AllowDuplicateJobItem(SyncJobItem original, SyncJobItem duplicate);
}
}