We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c1549a3 + a34deb6 commit 434e77fCopy full SHA for 434e77f
1 file changed
pkg/storage/smb/smb.go
@@ -82,6 +82,7 @@ func (s *SMB) Push(ctx context.Context, target, source string, logger *log.Entry
82
)
83
err = s.exec(s.url, func(fs *smb2.Share, sharepath string) error {
84
smbFilename := fmt.Sprintf("%s%c%s", sharepath, smb2.PathSeparator, target)
85
+ smbFilename = strings.TrimPrefix(smbFilename, fmt.Sprintf("%c", smb2.PathSeparator))
86
from, err := os.Open(source)
87
if err != nil {
88
return err
0 commit comments