mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-05 16:28:49 +01:00
🐛 Unable to export Data if workspace folder contains non-ASCII characters Fix https://github.com/siyuan-note/siyuan/issues/8678
This commit is contained in:
parent
943e155203
commit
164c679d89
1 changed files with 6 additions and 0 deletions
|
|
@ -255,6 +255,12 @@ func ExportDataInFolder(exportFolder string) (name string, err error) {
|
|||
return
|
||||
}
|
||||
name = filepath.Base(zipPath)
|
||||
name, err = url.PathUnescape(name)
|
||||
if nil != err {
|
||||
logging.LogErrorf("url unescape [%s] failed: %s", name, err)
|
||||
return
|
||||
}
|
||||
|
||||
targetZipPath := filepath.Join(exportFolder, name)
|
||||
zipAbsPath := filepath.Join(util.TempDir, "export", name)
|
||||
err = filelock.Copy(zipAbsPath, targetZipPath)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue