private Task OnRemovedAsync(IFileSystemEvent e, CancellationToken token)
 {
     lock (_filesWaitingToRemove)
     {
         if (_filesWaitingToRemove.Contains(e.FullName))
         {
             _filesWaitingToRemove.Remove(e.FullName);
             _nonQuietOutput.AddInformationMessage(DateTime.UtcNow, $"Found removed file: {e.FullName}", token);
         }
     }
     return(Task.CompletedTask);
 }
Exemple #2
0
 private Task OnRenamedAsync(IRenamedFileSystemEvent rfse, CancellationToken token)
 {
     _output.AddInformationMessage(rfse.DateTimeUtc, $"[{(rfse.IsFile ? "F" : "D")}][R]:{rfse.PreviousFileSystemInfo.FullName} > {rfse.FileSystemInfo.FullName}", token);
     return(Task.CompletedTask);
 }