Extract storage key building into a shared StorageKey helper

This commit is contained in:
2026-06-01 16:45:37 +02:00
parent 5c5fab86a5
commit 58fda0ba9a
3 changed files with 46 additions and 46 deletions
+12
View File
@@ -0,0 +1,12 @@
namespace Musify.Application.Shared
{
public static class StorageKey
{
public static string Combine(params string[] segments)
{
return string.Join('/', segments
.Where(static s => !string.IsNullOrWhiteSpace(s))
.Select(static s => s.Trim().Trim('/', '\\')));
}
}
}