/// <summary> /// Function that checks for existant files that hasnt been detected by reading Fhsks file it because they are new. /// </summary> /// <param name="lfs">Pre-computed LoadedFileStatus list</param> /// <param name="currentDD">Specific DirectoryData to correct.</param> public static void AddNewFiles(List <LoadedFileStatus> lfs, DirectoryData currentDD) { string[] files = Directory.GetFiles(currentDD.RootPath, "*", SearchOption.AllDirectories); for (int i = 0; i < files.Length; i++) { string buff = files[i].Replace(currentDD.RootPath, ""); if (!currentDD.CheckFileExistanceByRelativePath(buff)) { currentDD.AddFileData(files[i]); lfs.Add(LoadedFileStatus.NotTouched); } } }