remove database vrom VC
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -360,4 +360,6 @@ MigrationBackup/
|
||||
.ionide/
|
||||
|
||||
# Fody - auto-generated XML schema
|
||||
FodyWeavers.xsd
|
||||
FodyWeavers.xsd
|
||||
|
||||
/Files/db.db
|
||||
@@ -83,6 +83,14 @@ namespace Files {
|
||||
var sameSize = connection.Query<DbRecord>("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)
|
||||
|
||||
@@ -2,6 +2,11 @@
|
||||
"profiles": {
|
||||
"Files": {
|
||||
"commandName": "Project"
|
||||
},
|
||||
"WSL 2": {
|
||||
"commandName": "WSL2",
|
||||
"environmentVariables": {},
|
||||
"distributionName": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
Files/db.db
BIN
Files/db.db
Binary file not shown.
Reference in New Issue
Block a user