Commit a277f63f authored by ale's avatar ale
Browse files

Try to limit generated atom names to the / directory

This is necessary in consequence of issue #2.
parent 6e1b5211
Pipeline #3444 passed with stages
in 2 minutes
......@@ -3,6 +3,7 @@ package tabacco
import (
......@@ -126,7 +127,7 @@ func expandVars(s string, backup Backup, ds Dataset, atom Atom) string {
func makeSingleAtomDataset(ds Dataset, atom Atom) Dataset {
return Dataset{
Name: filepath.Join(ds.Name, atom.Name),
Name: fmt.Sprintf("/%s.%s", ds.Name, atom.Name),
Handler: ds.Handler,
Atoms: []Atom{atom},
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment