|
@@ -296,7 +296,7 @@ func ImportSY(zipPath, boxID, toPath string) (err error) {
|
|
|
}
|
|
|
|
|
|
IncSync()
|
|
|
- RefreshFileTree()
|
|
|
+ FullReindex()
|
|
|
return
|
|
|
}
|
|
|
|
|
@@ -343,7 +343,7 @@ func ImportData(zipPath string) (err error) {
|
|
|
}
|
|
|
|
|
|
IncSync()
|
|
|
- RefreshFileTree()
|
|
|
+ FullReindex()
|
|
|
return
|
|
|
}
|
|
|
|
|
@@ -518,7 +518,7 @@ func ImportFromLocalPath(boxID, localPath string, toPath string) (err error) {
|
|
|
}
|
|
|
|
|
|
IncSync()
|
|
|
- RefreshFileTree()
|
|
|
+ FullReindex()
|
|
|
} else { // 导入单个文件
|
|
|
fileName := filepath.Base(localPath)
|
|
|
if !strings.HasSuffix(fileName, ".md") && !strings.HasSuffix(fileName, ".markdown") {
|