diff --git a/.gitignore b/.gitignore index 9491a2f..09540bc 100644 --- a/.gitignore +++ b/.gitignore @@ -360,4 +360,6 @@ MigrationBackup/ .ionide/ # Fody - auto-generated XML schema -FodyWeavers.xsd \ No newline at end of file +FodyWeavers.xsd + +/Files/db.db \ No newline at end of file diff --git a/Files/Program.cs b/Files/Program.cs index f8449df..d286feb 100644 --- a/Files/Program.cs +++ b/Files/Program.cs @@ -83,6 +83,14 @@ namespace Files { var sameSize = connection.Query("SELECT name, size, inode FROM files WHERE size = @size", new { potentialFile.size }).ToList(); + var unporocessable = sameSize + .Where(r => !r.Hash.HasValue); + + foreach (var dbRecord in unporocessable) + { + AnsiConsole.MarkupLine($"[red]:cross_mark: NO_ACCESS:[/] :page_facing_up: {dbRecord.Name.Replace("[", "[[").Replace("]", "]]")}"); + } + var equalGrouped = sameSize .Where(r => r.Hash.HasValue) .GroupBy(r=>r.Hash) diff --git a/Files/Properties/launchSettings.json b/Files/Properties/launchSettings.json index f710fc4..31b4385 100644 --- a/Files/Properties/launchSettings.json +++ b/Files/Properties/launchSettings.json @@ -2,6 +2,11 @@ "profiles": { "Files": { "commandName": "Project" + }, + "WSL 2": { + "commandName": "WSL2", + "environmentVariables": {}, + "distributionName": "" } } } \ No newline at end of file diff --git a/Files/db.db b/Files/db.db deleted file mode 100644 index 825c336..0000000 Binary files a/Files/db.db and /dev/null differ