Skip to content

Commit

Permalink
implement clone on local store
Browse files Browse the repository at this point in the history
  • Loading branch information
colindickson committed Jun 20, 2023
1 parent ca0e497 commit 3924b3b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions localstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ func NewLocalStore(baseURL *url.URL, extension, compressionType string, overwrit
}, nil
}

func (s *LocalStore) Clone(ctx context.Context) (Store, error) {
return NewLocalStore(s.baseURL, s.extension, s.compressionType, s.overwrite)
}

func (s *LocalStore) SubStore(subFolder string) (Store, error) {
basePath := s.baseURL.Path
newPath := path.Join(basePath, subFolder)
Expand Down

0 comments on commit 3924b3b

Please sign in to comment.