fix List()

This commit is contained in:
Łukasz Wróblewski 2020-07-02 08:02:44 +02:00
parent c32ca9162c
commit effd8e354d
1 changed files with 6 additions and 1 deletions

View File

@ -229,7 +229,12 @@ func (d *Driver) List(collection string) ([]string, error) {
dir := filepath.Join(d.dir, collection)
// check to see if collection (directory) exists
if _, err := stat(dir); err != nil {
//if _, err := stat(dir); err != nil {
// return nil, err
//}
files, err := ioutil.ReadDir(dir)
if err != nil {
return nil, err
}