feat: check all in dir

This commit is contained in:
Simon Ding
2024-07-14 20:24:33 +08:00
parent 6a5ff9707e
commit 6f91157d40
5 changed files with 122 additions and 10 deletions

View File

@@ -3,6 +3,7 @@ package storage
import (
"io"
"io/fs"
"io/ioutil"
"os"
"path/filepath"
@@ -62,3 +63,8 @@ func (l *LocalStorage) Move(src, dest string) error {
return os.RemoveAll(src)
}
func (l *LocalStorage) ReadDir(dir string) ([]fs.FileInfo, error) {
return ioutil.ReadDir(dir)
}