Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

Add support for direct path when cloning VM

Jakub Klapacz8cd5fc6e4518
diff --git a/libs/lume/src/FileSystem/Home.swift b/libs/lume/src/FileSystem/Home.swift
index 634e3bef3f..5a91b49030 100644
--- a/libs/lume/src/FileSystem/Home.swift
+++ b/libs/lume/src/FileSystem/Home.swift
@@ -87,7 +87,14 @@ final class Home {
let baseDir = Path(cleanPath)
return VMDirectory(baseDir.directory(name))
}
-
+
+ // Check if storage is a direct path
+ if let storage = storage, (storage.contains("/") || storage.contains("\\")) {
+ let cleanPath = storage.hasSuffix("/") ? String(storage.dropLast()) : storage
+ let baseDir = Path(cleanPath)
+ return VMDirectory(baseDir.directory(name))
+ }
+
let location: VMLocation
if let storage = storage {