Move-By-Id UserSecretsId
This commit is contained in:
parent
145610d45a
commit
0f6a78f242
@ -139,11 +139,12 @@ public class DeleteByDistinct
|
||||
File.WriteAllLines(Path.Combine(directory, logFile), deletedDirectories.Distinct());
|
||||
}
|
||||
}
|
||||
logFile = $"{ticks}-{variable}-Files-B.lsv";
|
||||
if (!logOnly)
|
||||
File.WriteAllLines(Path.Combine(directory, logFile), renameFiles.Select(l => l.Source));
|
||||
if (renameFiles.Any() && !logOnly)
|
||||
if (!logOnly && renameFiles.Any())
|
||||
{
|
||||
logFile = $"{ticks}-{variable}-Files-B.lsv";
|
||||
File.WriteAllLines(Path.Combine(directory, logFile), renameFiles.Select(l => l.Source));
|
||||
logFile = $"{ticks}-{variable}-Files-C.lsv";
|
||||
File.WriteAllLines(Path.Combine(directory, logFile), renameFiles.Select(l => l.Destination));
|
||||
log.Information($"Ready to rename to match {renameFiles.Count} from {variable} {appSettings.SearchPattern} file(s)? See <{logFile}>");
|
||||
for (int y = 0; y < int.MaxValue; y++)
|
||||
{
|
||||
|
@ -6,10 +6,5 @@
|
||||
},
|
||||
"Serilog": {
|
||||
"MinimumLevel": "Debug"
|
||||
},
|
||||
"Windows": {
|
||||
"Configuration": {
|
||||
"VerifyToSeason": []
|
||||
}
|
||||
}
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<LangVersion>10.0</LangVersion>
|
||||
@ -6,6 +6,7 @@
|
||||
<OutputType>Exe</OutputType>
|
||||
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<UserSecretsId>ce31220e-ef92-4e68-89c5-91b027a94dca</UserSecretsId>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<PackageId>Phares.View.by.Distance.Move.By.Id</PackageId>
|
||||
|
@ -1,20 +1,10 @@
|
||||
{
|
||||
"ComparePathsFile": "C:/Users/mikep/AppData/Local/PharesApps/Drag-Drop-Explorer/2023_05/638105806929278358.json",
|
||||
"MoveTo": "L",
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Log4netProvider": "Debug"
|
||||
}
|
||||
},
|
||||
"MaxDegreeOfParallelism": 6,
|
||||
"MaxMinutesDelta": 2,
|
||||
"Serilog": {
|
||||
"MinimumLevel": "Debug"
|
||||
},
|
||||
"Windows": {
|
||||
"Configuration": {
|
||||
"RootDirectory": "C:/",
|
||||
"VerifyToSeason": []
|
||||
}
|
||||
}
|
||||
}
|
@ -286,6 +286,11 @@ public class Rename
|
||||
continue;
|
||||
distinct.Add(checkFile);
|
||||
results.Add(new(fileHolder, checkFile));
|
||||
if (ffmpegFiles is not null)
|
||||
{
|
||||
foreach (string ffmpegFile in ffmpegFiles)
|
||||
File.Delete(ffmpegFile);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
if (id is null)
|
||||
|
Loading…
x
Reference in New Issue
Block a user