another round of edits, still need to figure out return types

This commit is contained in:
2026-05-19 22:38:38 -06:00
parent f92155a253
commit ef45dd2474
2 changed files with 5 additions and 9 deletions
+1 -3
View File
@@ -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 {
//
}
+4 -6
View File
@@ -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
}