Generalize fuse snapshot dirs implemetation

+ allow "/" in tags and snapshot template
This commit is contained in:
Alexander Weiss
2022-08-05 23:46:46 +02:00
committed by Michael Eischer
parent 696c18e031
commit 57f4003f2f
5 changed files with 434 additions and 470 deletions
-4
View File
@@ -5,7 +5,6 @@ package main
import (
"os"
"strings"
"time"
"github.com/spf13/cobra"
@@ -86,9 +85,6 @@ func runMount(opts MountOptions, gopts GlobalOptions, args []string) error {
if opts.SnapshotTemplate == "" {
return errors.Fatal("snapshot template string cannot be empty")
}
if strings.ContainsAny(opts.SnapshotTemplate, `\/`) {
return errors.Fatal("snapshot template string contains a slash (/) or backslash (\\) character")
}
if len(args) == 0 {
return errors.Fatal("wrong number of parameters")
}