add FilePath
Some checks are pending
Lint / golangci-lint (push) Waiting to run
Declarative Tests / test (push) Waiting to run
Declarative Tests / build-fedora (push) Waiting to run
Declarative Tests / build-ubuntu-focal (push) Waiting to run

This commit is contained in:
Matthew Rich 2024-09-24 19:29:11 +00:00
parent 8df03c455c
commit 21e9525e76

View File

@ -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 {