From e00922f49d231fb51317feac486ac67b6446cdd0 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Thu, 25 Jan 2024 16:31:05 -0500 Subject: [PATCH] feat: add NewFile helper in storage --- storage/storage.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/storage/storage.go b/storage/storage.go index 8bc3b1d..27c8748 100644 --- a/storage/storage.go +++ b/storage/storage.go @@ -639,3 +639,6 @@ func (s *StorageServiceImpl) GetFile(hash []byte, start int64) (io.ReadCloser, i return object.Content, int64(upload.Size), nil } +func (s *StorageServiceImpl) NewFile(hash []byte) interfaces.File { + return NewFile(hash, s) +}