NewDir creates a new TempDir in the default location (typically $TMPDIR)
(prefix string)
| 28 | |
| 29 | // NewDir creates a new TempDir in the default location (typically $TMPDIR) |
| 30 | func NewDir(prefix string) (*TempDir, error) { |
| 31 | return NewDirAtRoot("", prefix) |
| 32 | } |
| 33 | |
| 34 | // NewDirAtRoot creates a new TempDir at the given root. |
| 35 | func NewDirAtRoot(root, prefix string) (*TempDir, error) { |