Skip to content

Commit 0b6a7d6

Browse files
committed
feat(serverHandler/mkdir): skip process empty filename
1 parent ab282db commit 0b6a7d6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/serverHandler/mkdir.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ func (h *handler) mkdirs(fsPrefix string, files []string, aliasSubItems []os.Fil
88
errs := []error{}
99

1010
for _, filename := range files {
11-
if containsItem(aliasSubItems, filename) {
11+
if len(filename) == 0 {
12+
continue
13+
} else if containsItem(aliasSubItems, filename) {
1214
continue
1315
}
1416
err := os.Mkdir(fsPrefix+"/"+filename, 0755)

0 commit comments

Comments
 (0)