2783450a92
Rename the library module and CLI wrapper. Rename daemon/graphdriver to drivers. Catch up vendoring to match modules we've pruned. Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
18 lines
386 B
Go
18 lines
386 B
Go
// +build windows
|
|
|
|
package ioutils
|
|
|
|
import (
|
|
"io/ioutil"
|
|
|
|
"github.com/containers/storage/pkg/longpath"
|
|
)
|
|
|
|
// TempDir is the equivalent of ioutil.TempDir, except that the result is in Windows longpath format.
|
|
func TempDir(dir, prefix string) (string, error) {
|
|
tempDir, err := ioutil.TempDir(dir, prefix)
|
|
if err != nil {
|
|
return "", err
|
|
}
|
|
return longpath.AddPrefix(tempDir), nil
|
|
}
|