修改 CloudProduct ImageCache 项目改为 插件

This commit is contained in:
chfei committed 2026-10-22 15:56:55 +08:00
1 parent 5ff52dea92
commit 292cb8638c
26 files changed
+417 -282

No files matched your search

+4
View File
@@ -21,6 +21,10 @@
foreach (var file in Directory.GetFiles(plugin, "*", SearchOption.AllDirectories))
{
var relative = file.Substring(plugin.TrimEnd(Path.DirectorySeparatorChar).Length + 1);
// Plugin settings are owned by the plugin even when identical to host settings.
if (Path.GetFileName(file).StartsWith("appsettings", StringComparison.OrdinalIgnoreCase)
&& string.Equals(Path.GetExtension(file), ".json", StringComparison.OrdinalIgnoreCase))
continue;
var shared = Path.GetFullPath(Path.Combine(host, relative));
// Only compare files below the host, outside its plugin subtree.
if (!shared.StartsWith(host.TrimEnd(Path.DirectorySeparatorChar) + Path.DirectorySeparatorChar, StringComparison.OrdinalIgnoreCase)