Generalize fuse snapshot dirs implemetation

+ allow "/" in tags and snapshot template
This commit is contained in:
Alexander Weiss authored and Michael Eischer committed 2022-08-05 23:46:46 +02:00
1 parent 696c18e031
commit 57f4003f2f
5 files changed
+434 -470

No files matched your search

-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")
}