♻️ Extract method util.GetTreeID

This commit is contained in:
Daniel 2024-11-29 08:41:43 +08:00
parent c295a496d7
commit 6f7e106be4
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
11 changed files with 26 additions and 27 deletions

View file

@ -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() {