윈도우에서 동작 안하는 문제 수정

This commit is contained in:
2023-12-08 16:47:14 +09:00
parent 00fa08a739
commit 27dd9226e9
3 changed files with 20 additions and 9 deletions

View File

@ -68,7 +68,7 @@ func download(dir string, urlpath string, accessToken string, cb func(int64, int
return "", fmt.Errorf("download failed : %d %s", resp.StatusCode, parsed.Path)
}
out, err := os.Create(path.Join(dir, path.Base(parsed.Path)))
out, err := os.Create(path.Join(dir, path.Base(filepath.ToSlash(parsed.Path))))
if err != nil {
return "", err
}