mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 导入 .sy.zip 时增量建立索引 https://github.com/siyuan-note/siyuan/issues/7123
This commit is contained in:
parent
7401ae845a
commit
772984fe1b
4 changed files with 51 additions and 6 deletions
|
|
@ -103,8 +103,11 @@ func pagedPaths(localPath string, pageSize int) (ret map[int][]string) {
|
|||
ret = map[int][]string{}
|
||||
page := 1
|
||||
filepath.Walk(localPath, func(path string, info fs.FileInfo, err error) error {
|
||||
if info.IsDir() && strings.HasPrefix(info.Name(), ".") {
|
||||
return filepath.SkipDir
|
||||
if info.IsDir() {
|
||||
if strings.HasPrefix(info.Name(), ".") {
|
||||
return filepath.SkipDir
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
if !strings.HasSuffix(info.Name(), ".sy") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue