feat: add season package download ability

This commit is contained in:
Simon Ding
2024-07-20 12:23:26 +08:00
parent 7dead9b2ac
commit 72600aff9a
9 changed files with 409 additions and 102 deletions

View File

@@ -29,8 +29,8 @@ func NewWebdavStorage(url, user, password, path string) (*WebdavStorage, error)
}
func (w *WebdavStorage) Move(local, remote string) error {
baseLocal := filepath.Base(local)
remoteBase := filepath.Join(w.dir,remote, baseLocal)
remoteBase := filepath.Join(w.dir,remote)
//log.Infof("remove all content in %s", remoteBase)
//w.fs.RemoveAll(remoteBase)