fix: typo

This commit is contained in:
Noah Hsu
2022-06-15 14:57:13 +08:00
parent 066ddd3e09
commit c65a9b3001
2 changed files with 7 additions and 6 deletions

View File

@ -20,8 +20,8 @@ func Exists(name string) bool {
return true
}
// CreatNestedFile create nested file
func CreatNestedFile(path string) (*os.File, error) {
// CreateNestedFile create nested file
func CreateNestedFile(path string) (*os.File, error) {
basePath := filepath.Dir(path)
if !Exists(basePath) {
err := os.MkdirAll(basePath, 0700)