- Extract PathFromGuid to shared PathUtils.cs (PreviewJob + ThumbnailJob) - Consolidate RegexHighlighter duplicate methods via delegation - Fix default port 3306 -> 5432 in appsettings.json + docker-compose.yml - Remove port gotcha section from AGENTS.md - Fix ITagRepository XML docs after parameter rename (id -> tag)
15 lines
320 B
C#
15 lines
320 B
C#
namespace Lactose.Jobs;
|
|
|
|
static class PathUtils {
|
|
internal static string PathFromGuid(Guid id, string root) {
|
|
var s = id.ToString("N");
|
|
|
|
return Path.Combine(
|
|
root,
|
|
s[..2],
|
|
s.Substring(2, 2),
|
|
s.Substring(4, 2),
|
|
$"{s}.webp"
|
|
);
|
|
}
|
|
} |