()
| 67 | } |
| 68 | |
| 69 | func (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 | |
| 82 | func (this *LogWriter) MakeLogTimePath() { |
| 83 | now := time.Now() |