diff --git a/internal/storage/local.go b/internal/storage/local.go index 12900de..ac17372 100644 --- a/internal/storage/local.go +++ b/internal/storage/local.go @@ -5,12 +5,10 @@ import ( "os" ) - type LocalStorage struct { - BaseDir string, + BaseDir string } - func (s *LocalStorage) UploadFile(dirPath string, filename string, data io.Reader) error { // } diff --git a/internal/storage/storage.go b/internal/storage/storage.go index 453f44d..5e1e373 100644 --- a/internal/storage/storage.go +++ b/internal/storage/storage.go @@ -1,12 +1,10 @@ package storage - import ( "io" "os" ) - type Storage interface { UploadFile(dirPath string, filename string, data io.Reader) error ListFiles(dirPath string) ([]FileNode, error) @@ -18,8 +16,8 @@ type Storage interface { } type FileNode struct { - BasePath string, - FileName string, - IsDirectory bool, - FileSize uint64, + RelativeBasePath string + FileName string + IsDirectory bool + FileSize uint64 }