Skip to content

Commit

Permalink
Update storage/paths/local.go
Browse files Browse the repository at this point in the history
Co-authored-by: Rod Vagg <[email protected]>
  • Loading branch information
asamuj and rvagg authored Dec 20, 2024
1 parent a3683a3 commit 23159ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/paths/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ func (st *Local) declareSectors(ctx context.Context, p string, id storiface.ID,
ents, err := os.ReadDir(filepath.Join(p, t.String()))
if err != nil {
if os.IsNotExist(err) {
if err := os.MkdirAll(filepath.Join(p, t.String()), 0o755); err != nil { // nolint
if err := os.MkdirAll(filepath.Join(p, t.String()), 0755); err != nil { // nolint
return xerrors.Errorf("openPath mkdir '%s': %w", filepath.Join(p, t.String()), err)
}

Expand Down

0 comments on commit 23159ac

Please sign in to comment.