Skip to content

Commit

Permalink
Ignore metadata.json file when generating metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
ProphetLamb committed Jun 28, 2020
1 parent 6959b97 commit fdafdd6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion CrossoutLogViewer.Updater/UpdaterBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public async Task GenerateMetadata(string path)
{
if (!Directory.Exists(path))
throw new DirectoryNotFoundException(path);
var local = FileMetadata.FromPaths(HashFunction, Directory.GetFiles(path));
var local = FileMetadata.FromPaths(HashFunction, Directory.GetFiles(path)).Where(x => !Strings.MetadataFile.Equals(x.Name, StringComparison.InvariantCulture)).ToArray();
await FileMetadataHelper.WriteJson(local, Path.Combine(path, Strings.MetadataFile));
}

Expand Down
5 changes: 0 additions & 5 deletions resources/config/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@
"Name": "maps.json",
"Size": 821
},
{
"Sha": "iwr+SEW6vzx5q3q/t5O1bcbFtMU=",
"Name": "metadata.json",
"Size": 507
},
{
"Sha": "uqBk6QkqAOPnbOLzlNjMPO2MphY=",
"Name": "NLog.config",
Expand Down
5 changes: 0 additions & 5 deletions resources/images/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,6 @@
"Name": "iron_way_center_256x256.jpg",
"Size": 26039
},
{
"Sha": "0NwZOisS/Wcl3T/4NdDkTd/e75c=",
"Name": "metadata.json",
"Size": 8095
},
{
"Sha": "vuSuw1d2TiYbzgBIl9t/Cj9Gdx0=",
"Name": "miners_way.jpg",
Expand Down

0 comments on commit fdafdd6

Please sign in to comment.