fix(smb): use correct path (#2933)

There is no need to add a `.` prefix as there is no leading `/` in paths
This commit is contained in:
BoYanZh
2023-01-07 00:47:08 +08:00
committed by GitHub
parent d655340634
commit cf5714ba73
2 changed files with 10 additions and 19 deletions

View File

@ -8,7 +8,6 @@ import (
"path/filepath"
"time"
"github.com/alist-org/alist/v3/internal/model"
"github.com/hirochachacha/go-smb2"
)
@ -53,14 +52,6 @@ func (d *SMB) checkConn() error {
return d.initFS()
}
func (d *SMB) getSMBPath(dir model.Obj) string {
fullPath := dir.GetPath()
if fullPath[0:1] != "." {
fullPath = "." + fullPath
}
return fullPath
}
// CopyFile File copies a single file from src to dst
func (d *SMB) CopyFile(src, dst string) error {
var err error