Exemple #1
0
 public void Delete(GroupFile groupFile)
 {
     try
     {
         _fileOps.DeleteFile(groupFile.FullName);
         _logger.LogInformation($"DELETED {groupFile.FullName} to the recycle bin.");
     }
     catch (Exception ex)
     {
         _logger.LogError(ex, $"EXCEPTION DELETING {groupFile.FullName}.");
     }
 }
Exemple #2
0
        public void Run()
        {
            // TODO: If anything fails, don't delete the dupe file.
            //       Provide a means of resuming???


            // Process duplicates
            _duplicateProcessor.ProcessDuplicates();

            if (!_config.DryRun)
            {
                // Delete the duplicates file
                _fileOps.DeleteFile(_config.DuplicateFilePath);
            }
        }