diff --git a/internal/tempdir/tempdir.go b/internal/tempdir/tempdir.go index 05d00a2..72c6615 100644 --- a/internal/tempdir/tempdir.go +++ b/internal/tempdir/tempdir.go @@ -68,6 +68,10 @@ func (t *Path) CreateFile(name string, content string) (err error) { return } +func (t *Path) FilePath(name string) string { + return filepath.Join(string(*t), name) +} + func (t *Path) Mkdir(name string, mode os.FileMode) (err error) { var path string if path, err = filepath.Abs(filepath.Join(string(*t), name)); err == nil {