filepath.Join
This commit is contained in:
parent
42fd52c13a
commit
8901bb964c
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ func (a *App) SaveFile(reader io.Reader, workspaceID, rootID, filename string) (
|
||||||
}
|
}
|
||||||
|
|
||||||
createdFilename := fmt.Sprintf(`%s%s`, utils.CreateGUID(), fileExtension)
|
createdFilename := fmt.Sprintf(`%s%s`, utils.CreateGUID(), fileExtension)
|
||||||
filePath := fmt.Sprintf(`%s/%s/%s`, workspaceID, rootID, createdFilename)
|
filePath := filepath.Join(workspaceID, rootID, createdFilename)
|
||||||
|
|
||||||
_, appErr := a.filesBackend.WriteFile(reader, filePath)
|
_, appErr := a.filesBackend.WriteFile(reader, filePath)
|
||||||
if appErr != nil {
|
if appErr != nil {
|
||||||
|
|
Loading…
Reference in a new issue