Skip to content

Commit f85d686

Browse files
committed
Ensure canonical path on MkTempDir
1 parent 3054e0e commit f85d686

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

constructors.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func MkTempDir(dir, prefix string) (*Path, error) {
5757
if err != nil {
5858
return nil, err
5959
}
60-
return New(path), nil
60+
return New(path).Canonical(), nil
6161
}
6262

6363
// MkTempFile creates a new temporary file in the directory dir with a name beginning with prefix,

0 commit comments

Comments
 (0)