Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
storage: mkdirAll for local storage even when SkipCheckPath is true (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
lichunzhu authored Jun 1, 2021
1 parent 701909b commit 6cb0c4a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/storage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,6 @@ func New(ctx context.Context, backend *backuppb.StorageBackend, opts *ExternalSt
if backend.Local == nil {
return nil, errors.Annotate(berrors.ErrStorageInvalidConfig, "local config not found")
}
if opts.SkipCheckPath {
return &LocalStorage{base: backend.Local.Path}, nil
}
return NewLocalStorage(backend.Local.Path)
case *backuppb.StorageBackend_S3:
if backend.S3 == nil {
Expand Down

0 comments on commit 6cb0c4a

Please sign in to comment.