Skip to content

Commit

Permalink
object/sftp: fix sftp String method (#3847)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijian-pro authored and SandyXSD committed Aug 31, 2023
1 parent 165a63f commit c2bd66e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/object/sftp.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func (f *sftpStore) putSftpConnection(pc **conn, err error) {
}

func (f *sftpStore) String() string {
return fmt.Sprintf("%s@%s:%s", f.config.User, f.host, f.root)
return fmt.Sprintf("sftp://%s@%s:%s", f.config.User, f.host, f.root)
}

// always preserve suffix `/` for directory key
Expand Down

0 comments on commit c2bd66e

Please sign in to comment.