--- /usr/lib/bareos/plugins/BareosFdPluginVMware.py	2023-06-12 09:05:02.000000000 +0000
+++ BareosFdPluginVMware.py	2023-06-15 13:45:46.558101477 +0000
@@ -423,6 +423,11 @@

         if "uuid" in self.options:
             self.vadp.backup_path = "/VMS/%s" % (self.options["uuid"])
+        if self.options["folder"] == "/" or self.options["folder"] == "":
+            self.vadp.backup_path = "/VMS/%s/%s" % (
+                self.options["dc"],
+                self.options["vmname"],
+           )
         else:
             self.vadp.backup_path = "/VMS/%s/%s/%s" % (
                 self.options["dc"],
