mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-21 07:46:09 +01:00
🎨 Export data.zip and then import it no longer change the file timestamp Fix https://github.com/siyuan-note/siyuan/issues/8540
This commit is contained in:
parent
93916d94b1
commit
9841e0b481
1 changed files with 6 additions and 0 deletions
|
|
@ -82,6 +82,9 @@ func ImportSY(zipPath, boxID, toPath string) (err error) {
|
|||
util.PushEndlessProgress(Conf.Language(73))
|
||||
defer util.ClearPushProgress(100)
|
||||
|
||||
syncLock.Lock()
|
||||
defer syncLock.Unlock()
|
||||
|
||||
baseName := filepath.Base(zipPath)
|
||||
ext := filepath.Ext(baseName)
|
||||
baseName = strings.TrimSuffix(baseName, ext)
|
||||
|
|
@ -412,6 +415,9 @@ func ImportData(zipPath string) (err error) {
|
|||
util.PushEndlessProgress(Conf.Language(73))
|
||||
defer util.ClearPushProgress(100)
|
||||
|
||||
syncLock.Lock()
|
||||
defer syncLock.Unlock()
|
||||
|
||||
baseName := filepath.Base(zipPath)
|
||||
ext := filepath.Ext(baseName)
|
||||
baseName = strings.TrimSuffix(baseName, ext)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue