Comparison of 2nd



  • Two sets, one:

    DirectoryInfo dinfo = new DirectoryInfo(@"D:\N");
    FileInfo[] localFiles = dinfo.GetFiles("*.zip");
    

    Second:

     string[] downloadFiles = GetFileList();
    

    The structure is identical, the elements contained in the downloadFiles are to be selected, except for those in the localFiles.



  • It's fine. https://msdn.microsoft.com/ru-ru/library/bb300779(v=vs.110).aspx

    var files = downloadFiles.Except(localFiles.Select(lf=>lf.Name));
    

Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2