rename zero to Finch

This commit is contained in:
2026-04-07 14:23:29 +02:00
parent 535894e774
commit 1bcf2b25b5
267 changed files with 1028 additions and 1045 deletions
+28
View File
@@ -0,0 +1,28 @@
namespace Finch.FileStorage;
public class WebRootFileSystem : PhysicalFileSystem, IWebRootFileSystem
{
protected string PublicPathPrefix { get; }
public WebRootFileSystem(string root, string publicPathPrefix) : base(root)
{
PublicPathPrefix = (publicPathPrefix ?? String.Empty).EnsureEndsWith('/');
}
/// <inheritdoc />
public override string MapToPublicPath(string path)
{
if (path.IsNullOrEmpty())
{
return null;
}
return PublicPathPrefix + path.TrimStart('/');
}
}
public interface IWebRootFileSystem : IFileSystem
{
}