Skip to content

Commit 3680a5a

Browse files
修正.开头的目录未被忽略的问题
1 parent 02661fc commit 3680a5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/sync2confluence/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ func getContentInfoLists(rootPath string) ([]FileContentInfo, []FileContentInfo,
146146
title := contentInfo.Title
147147

148148
//以.开头的文件跳过、以.开头的目录及其子目录跳过
149-
if title == "" && contentInfo.Ext != "" {
149+
if title == "" || strings.HasPrefix(title, ".") {
150150
if info.IsDir() {
151151
return filepath.SkipDir
152152
} else {

0 commit comments

Comments
 (0)