Update main.go

This commit is contained in:
yystopf 2024-05-23 16:07:35 +08:00
parent f59fd170d1
commit 7a13588a2a
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ func main() {
err = os.MkdirAll(filepath.Join(directory, "new_folder"), 0755)
CheckIfError(err)
// 创建文件
// 创建文件由于git不允许创建空的文件夹这里创建.keep文件来保证文件夹正常创建
filePath := filepath.Join(directory, "new_folder", ".keep")
err = os.WriteFile(filePath, []byte(""), 0644)
CheckIfError(err)