PhotoPrism for more locations
This commit is contained in:
@ -216,6 +216,7 @@ public class Container
|
||||
{
|
||||
string relativePath;
|
||||
string checkFileName;
|
||||
string? checkDirectoryName;
|
||||
List<string> checkCollection = new();
|
||||
checkCollection.AddRange(otherCollection);
|
||||
int length = configuration.RootDirectory.Length;
|
||||
@ -225,6 +226,9 @@ public class Container
|
||||
{
|
||||
relativePath = Shared.Models.Stateless.Methods.IPath.GetRelativePath(fileHolder.FullName, length);
|
||||
checkFileName = Path.GetFullPath(string.Concat(aPropertySingletonDirectory, relativePath));
|
||||
checkDirectoryName = Path.GetDirectoryName(checkFileName);
|
||||
if (string.IsNullOrEmpty(checkDirectoryName) || !Directory.Exists(checkDirectoryName))
|
||||
continue;
|
||||
if (!checkCollection.Remove(checkFileName))
|
||||
File.WriteAllText(checkFileName, string.Empty);
|
||||
}
|
||||
|
Reference in New Issue
Block a user