package storage import ( "io" "os" ) type LocalStorage struct { BaseDir string } func (s *LocalStorage) UploadFile(dirPath string, filename string, data io.Reader) error { // } func (s *LocalStorage) ListFiles(dirPath string) ([]FileNode, error) { // } func (s *LocalStorage) ReadFile(filePath string) (*os.File, error) { // } func (s *LocalStorage) WriteFile(dirPath string, filename string, data io.Reader) (int, error) { // this is explicitly for writing text files that aren't being uploaded } func (s *LocalStorage) DeleteFile(filePath string) error { // } func (s *LocalStorage) DeleteDirectory(dirPath string) error { // } func (s *LocalStorage) DeleteDirectoryRecursive(dirPath string) error { // }