Skip to content

Commit

Permalink
Fix for incorrect snapID
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Fearne committed Aug 11, 2022
1 parent a0a43c6 commit 1765e5d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/storage/fs/cback/cback.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,10 @@ func (fs *cback) ListFolder(ctx context.Context, ref *provider.Reference, mdKeys
if resp.Substring != "" {
ssID, searchPath = fs.pathTrimmer(snapshotList, resp)

if ssID == "" {
return nil, errtypes.NotFound("cback: snapshotID invalid")
}

//If no match in path, therefore prints the files
fmt.Printf("The ssID is: %v\nThe Path is %v\n", ssID, searchPath)
ret, err := fs.fileSystem(resp.ID, ssID, user.Username, searchPath, resp.Source)
Expand Down

0 comments on commit 1765e5d

Please sign in to comment.