add scene save and load in quasar backend

This commit is contained in:
Adrian Zürcher
2025-06-19 19:33:13 +02:00
parent 3d865f47b3
commit e5b1dc2052
11 changed files with 354 additions and 64 deletions

View File

@@ -2,7 +2,9 @@ package utils
import (
"fmt"
"io/fs"
"os/exec"
"path/filepath"
"runtime"
"github.com/tecamino/tecamino-logger/logging"
@@ -44,3 +46,15 @@ func OpenBrowser(url string, logger *logging.Logger) error {
return fmt.Errorf("could not open browser")
}
func FindAllFiles(rootDir, fileExtention string) (files []string, err error){
err = filepath.WalkDir(rootDir, func(path string, d fs.DirEntry, err error) error {
if d.IsDir() {
return nil
} else if filepath.Ext(d.Name()) == fileExtention{
files = append(files, path)
}
return err
})
return
}