Update scribble.go
This commit is contained in:
parent
7eb5116ab8
commit
40c88ff105
@ -180,8 +180,8 @@ func (d *Driver) ReadAll(collection string) ([][]byte, error) {
|
|||||||
return nil, ErrMissingCollection
|
return nil, ErrMissingCollection
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
|
||||||
dir := filepath.Join(d.dir, collection)
|
dir := filepath.Join(d.dir, collection)
|
||||||
|
os.MkdirAll(dir, 0777)
|
||||||
|
|
||||||
// check to see if collection (directory) exists
|
// check to see if collection (directory) exists
|
||||||
if _, err := stat(dir); err != nil {
|
if _, err := stat(dir); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user