mirror of
https://github.com/simon-ding/polaris.git
synced 2026-06-07 02:27:40 +08:00
feat: check all in dir
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user