always prepend /Workspace unless it already there

This commit is contained in:
Denis Bilenko 2024-11-28 17:55:32 +01:00
parent 0c00ddef72
commit e8453d6a02
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ func FetchRepositoryInfoAPI(ctx context.Context, path vfs.Path, w *databricks.Wo
}
func fixResponsePath(path string) string {
if strings.HasPrefix(path, "/Users/") {
if !strings.HasPrefix(path, "/Workspace/") {
return "/Workspace/" + path
}
return path