MCPcopy Create free account
hub / github.com/Cyinx/einx / MakePath

Method MakePath

slog/slog_write.go:69–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67}
68
69func (this *LogWriter) MakePath() {
70 ok := false
71 if file, err := os.Stat(this.path); err != nil {
72 ok = os.IsExist(err)
73 } else {
74 ok = file.IsDir()
75 }
76
77 if ok == false {
78 os.MkdirAll(this.path, 0x777)
79 }
80}
81
82func (this *LogWriter) MakeLogTimePath() {
83 now := time.Now()

Callers 1

MakeLogTimePathMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected