Codebase list golang-check.v1 / 5300ee6
Fixed misleading tempdir removal message under Windows. aznashwan 9 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
135135 if td.path == "" {
136136 var err error
137137 for i := 0; i != 100; i++ {
138 path := fmt.Sprintf("%s/check-%d", os.TempDir(), rand.Int())
138 path := fmt.Sprintf("%s%ccheck-%d", os.TempDir(), os.PathSeparator, rand.Int())
139139 if err = os.Mkdir(path, 0700); err == nil {
140140 td.path = path
141141 break