🎨 Export the Data compressed package name with the workspace name Fix https://github.com/siyuan-note/siyuan/issues/8560

This commit is contained in:
Daniel 2023-06-17 00:15:24 +08:00
parent 59169d0479
commit 28ae09d1c7
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -272,7 +272,8 @@ func ExportData() (zipPath string, err error) {
util.PushEndlessProgress(Conf.Language(65))
defer util.ClearPushProgress(100)
exportFolder := filepath.Join(util.TempDir, "export", util.CurrentTimeSecondsStr())
name := util.FilterFileName(filepath.Base(util.WorkspaceDir)) + "-" + util.CurrentTimeSecondsStr()
exportFolder := filepath.Join(util.TempDir, "export", name)
zipPath, err = exportData(exportFolder)
if nil != err {
return