I have these two lists:
List<string> dirZipDireto = ConfigurationManager.AppSettings["Dir_Zip_Direto"].Split(';').ToList();
List<string> arquivos = Directory.GetFiles(caminhoCommiter, "*", SearchOption.AllDirectories).ToList();
To minimize lines of code and give more code beauty and consistency, I believe I can improve this and avoid some foreach. What I want:
I would like to load the arquivos
list with files, except those that exist in the dirZipDireto
directory list. So the code for arquivos
can be minimized and in a single expression?