X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=lib%2Ffolder%2Ffolder-pathmap.go;h=e200164db056e6f956be2a8010bb1eb1a196dbf5;hb=8d3f51e52894d46a4a92a944bc09f4ceaa1abf51;hp=bc714dde688668f3811924284e21de1c73aeafc8;hpb=b1708565ee2b4d725bb98c6b015f16af3d2a097e;p=src%2Fxds%2Fxds-server.git diff --git a/lib/folder/folder-pathmap.go b/lib/folder/folder-pathmap.go index bc714dd..e200164 100644 --- a/lib/folder/folder-pathmap.go +++ b/lib/folder/folder-pathmap.go @@ -33,7 +33,11 @@ func NewFolderPathMap(gc *xdsconfig.Config) *PathMap { // NewUID Get a UUID func (f *PathMap) NewUID(suffix string) string { - return uuid.NewV1().String() + "_" + suffix + uuid := uuid.NewV1().String() + if len(suffix) > 0 { + uuid += "_" + suffix + } + return uuid } // Add a new folder