commit
8fbdd5c63d
@ -62,7 +62,7 @@ func NewStore(root string) (content.Store, error) {
|
|||||||
// require labels and should use `NewStore`. `NewLabeledStore` is primarily
|
// require labels and should use `NewStore`. `NewLabeledStore` is primarily
|
||||||
// useful for tests or standalone implementations.
|
// useful for tests or standalone implementations.
|
||||||
func NewLabeledStore(root string, ls LabelStore) (content.Store, error) {
|
func NewLabeledStore(root string, ls LabelStore) (content.Store, error) {
|
||||||
if err := os.MkdirAll(filepath.Join(root, "ingest"), 0777); err != nil && !os.IsExist(err) {
|
if err := os.MkdirAll(filepath.Join(root, "ingest"), 0777); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user