Skip to content

Commit

Permalink
encapsulating pathname in batticks to escape spaces in pathnames
Browse files Browse the repository at this point in the history
  • Loading branch information
akhiljns committed Mar 17, 2024
1 parent 2ee8d2b commit 2feda54
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion db/db.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package db

import (
"fmt"
"log"
"os"
"path/filepath"
Expand All @@ -18,7 +19,8 @@ var (
)

func GetImageFilePath(imageName string) string {
return filepath.Join(ImagesDir, imageName+".ova")
imagePath := fmt.Sprintf("`%s`", filepath.Join(ImagesDir, imageName+".ova"))
return imagePath
}

func GetVMPath(vm string) string {
Expand Down

0 comments on commit 2feda54

Please sign in to comment.