Mass push
This commit is contained in:
@ -36,7 +36,7 @@
|
||||
<ItemGroup>
|
||||
<PackageReference Include="MetadataExtractor" Version="2.7.2" />
|
||||
<PackageReference Include="Serilog" Version="2.12.0" />
|
||||
<PackageReference Include="System.Text.Json" Version="7.0.0" />
|
||||
<PackageReference Include="System.Text.Json" Version="7.0.1" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Shared\View-by-Distance.Shared.csproj" />
|
||||
|
@ -95,22 +95,11 @@ public class B_Metadata
|
||||
{
|
||||
List<KeyValuePair<string, string>> results = new();
|
||||
string json = string.Empty;
|
||||
string[] changesFrom = Array.Empty<string>();
|
||||
Dictionary<string, List<KeyValuePair<string, string>>>? dictionary;
|
||||
string[] changesFrom = new string[] { nameof(Property.Models.A_Property) };
|
||||
List<DateTime> dateTimes = (from l in subFileTuples where changesFrom.Contains(l.Item1) select l.Item2).ToList();
|
||||
string bMetadataSingletonFile = Path.Combine(bResultsFullGroupDirectory, "{}", configuration.ResultAllInOne, $"{mappingFromItem.Id}{mappingFromItem.ImageFileHolder.ExtensionLowered}.json");
|
||||
FileInfo fileInfo = new(bMetadataSingletonFile);
|
||||
if (!fileInfo.FullName.Contains(configuration.ResultAllInOne) && !fileInfo.Exists)
|
||||
{
|
||||
if (fileInfo.Directory?.Parent is null)
|
||||
throw new Exception();
|
||||
string parentCheck = Path.Combine(fileInfo.Directory.Parent.FullName, fileInfo.Name);
|
||||
if (File.Exists(parentCheck))
|
||||
{
|
||||
File.Move(parentCheck, fileInfo.FullName);
|
||||
fileInfo.Refresh();
|
||||
}
|
||||
}
|
||||
if (_ForceMetadataLastWriteTimeToCreationTime && !fileInfo.Exists && File.Exists(Path.ChangeExtension(fileInfo.FullName, ".delete")))
|
||||
{
|
||||
File.Move(Path.ChangeExtension(fileInfo.FullName, ".delete"), fileInfo.FullName);
|
||||
|
@ -8,9 +8,9 @@ public interface IMetadata
|
||||
static string? GetFaceEncoding(string file) =>
|
||||
Metadata.GetFaceEncoding(file);
|
||||
|
||||
string? TestStatic_GetFaceLocation(string file) =>
|
||||
GetFaceLocation(file);
|
||||
static string? GetFaceLocation(string file) =>
|
||||
Metadata.GetFaceLocation(file);
|
||||
string? TestStatic_GetFaceX(string file) =>
|
||||
GetFaceX(file);
|
||||
static string? GetFaceX(string file) =>
|
||||
Metadata.GetFaceX(file);
|
||||
|
||||
}
|
@ -29,7 +29,7 @@ internal class Metadata
|
||||
return result;
|
||||
}
|
||||
|
||||
internal static string? GetFaceLocation(string file)
|
||||
internal static string? GetFaceX(string file)
|
||||
{
|
||||
string? result;
|
||||
List<string> results = new();
|
||||
|
Reference in New Issue
Block a user