mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
[Windows] cli: fix incorrect filepath separator causing upgrades to fail (#2562)
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
7eb28e4f6e
commit
32706f50f6
@ -18,7 +18,6 @@ import (
|
||||
"io"
|
||||
"io/fs"
|
||||
"os"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
@ -88,7 +87,7 @@ func (h *Handler) Read(name string) ([]byte, error) {
|
||||
// Write writes the data bytes into the file with the given name.
|
||||
func (h *Handler) Write(name string, data []byte, options ...Option) error {
|
||||
if hasOption(options, OptMkdirAll) {
|
||||
if err := h.fs.MkdirAll(path.Dir(name), os.ModePerm); err != nil {
|
||||
if err := h.fs.MkdirAll(filepath.Dir(name), os.ModePerm); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user