Skip to content

Commit

Permalink
remove nickname from save path
Browse files Browse the repository at this point in the history
  • Loading branch information
tickstep committed Jul 26, 2020
1 parent 5748f96 commit 3c57a2a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/config/pan_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package config
import (
"fmt"
"github.com/tickstep/cloudpan189-go/cloudpan"
"github.com/tickstep/cloudpan189-go/library/converter"
"github.com/tickstep/cloudpan189-go/library/logger"
"path"
"path/filepath"
Expand Down Expand Up @@ -95,7 +94,7 @@ func (pu *PanUser) FreshWorkdirInfo() {
// GetSavePath 根据提供的网盘文件路径 panpath, 返回本地储存路径,
// 返回绝对路径, 获取绝对路径出错时才返回相对路径...
func (pu *PanUser) GetSavePath(filePanPath string) string {
dirStr := filepath.Join(Config.SaveDir, fmt.Sprintf("%d_%s", pu.UID, converter.TrimPathInvalidChars(pu.Nickname)), filePanPath)
dirStr := filepath.Join(Config.SaveDir, fmt.Sprintf("%d", pu.UID), filePanPath)
dir, err := filepath.Abs(dirStr)
if err != nil {
dir = filepath.Clean(dirStr)
Expand Down

0 comments on commit 3c57a2a

Please sign in to comment.