mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-25 01:36:09 +01:00
♻️ Extract method util.GetTreeID
This commit is contained in:
parent
c295a496d7
commit
6f7e106be4
11 changed files with 26 additions and 27 deletions
|
|
@ -758,7 +758,7 @@ func ImportFromLocalPath(boxID, localPath string, toPath string) (err error) {
|
|||
targetPaths[curRelPath] = targetPath
|
||||
} else {
|
||||
targetPath = targetPaths[curRelPath]
|
||||
id = strings.TrimSuffix(path.Base(targetPath), ".sy")
|
||||
id = util.GetTreeID(targetPath)
|
||||
}
|
||||
|
||||
if d.IsDir() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue