Fixed misleading tempdir removal message under Windows.
aznashwan
9 years ago
135 | 135 | if td.path == "" { |
136 | 136 | var err error |
137 | 137 | 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()) | |
139 | 139 | if err = os.Mkdir(path, 0700); err == nil { |
140 | 140 | td.path = path |
141 | 141 | break |