A bunch of broken stuff

This commit is contained in:
2024-07-25 15:23:28 +02:00
parent 64decebb87
commit c9c50df9aa
11 changed files with 169 additions and 181 deletions

View File

@ -8,17 +8,15 @@ func CreateWorkdir(path string) (workdir string, err error) {
if err := os.Mkdir(path, 0777); err != nil {
return path, err
}
// TODO(@allanger): I've got a feeling that it doesn't have to look that bad
workdir = path
return path, nil
} else {
// Create a temporary dir
workdir, err = os.MkdirTemp("", "shoebill")
if err != nil {
return workdir, err
return "", err
}
return workdir, nil
}
return workdir, nil
}
func RemoveWorkdir(path string) (err error) {