Update scribble.go

This commit is contained in:
SysLabIT 2021-03-03 19:24:24 +01:00 committed by GitHub
parent 7eb5116ab8
commit 40c88ff105
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -180,8 +180,8 @@ func (d *Driver) ReadAll(collection string) ([][]byte, error) {
return nil, ErrMissingCollection
}
//
dir := filepath.Join(d.dir, collection)
os.MkdirAll(dir, 0777)
// check to see if collection (directory) exists
if _, err := stat(dir); err != nil {