CompareDirectories
Hi All,
I'm just trying to do a
If there are differences, I list them and if there are not just let user know the directories are the same. (Like this)
The problem I encounter is that the files in the local and remote folders are all the same name, and size, but there will be a couple files with the "Last Modified" attribute different by a few minutes or so, but my result comes back as
I'm just trying to do a
CompareDirectories
like such:
var compareDirectoryResult = session.CompareDirectories(SynchronizationMode.Both, $@"{SettingsVM.CustomerInputDeckDirectory}\{folder.Name}", SettingsVM.ConcurrentRemoteFileLocation, false, false, SynchronizationCriteria.Either);
if (compareDirectoryResult.Count > 0) { // I list the changes } else { // Let user know they are the same }
compareDirectoryResult.Count ==
to zero therefore not catching any changes. Am I doing something wrong in how I'm calling this method? Not sure how to make it accurate. Please help.