feat(storage): add IFileStorage + local-disk implementation
Adds IFileStorage abstraction and LocalDiskFileStorage for receipt file storage with path-traversal protection, and registers it in DI. Includes 3 TDD-verified xUnit tests. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
namespace ROLAC.API.Services.Storage;
|
||||
|
||||
public interface IFileStorage
|
||||
{
|
||||
Task<string> SaveAsync(Stream content, string relativePath, CancellationToken ct = default);
|
||||
Task<Stream?> OpenReadAsync(string relativePath, CancellationToken ct = default);
|
||||
Task DeleteAsync(string relativePath, CancellationToken ct = default);
|
||||
}
|
||||
Reference in New Issue
Block a user