mirror of https://github.com/cirruslabs/tart.git
Make sure VM directory exists before moving (#111)
This commit is contained in:
parent
63329ef363
commit
c14b46adc3
|
|
@ -28,6 +28,7 @@ class VMStorageLocal {
|
|||
}
|
||||
|
||||
func move(_ name: String, from: VMDirectory) throws {
|
||||
_ = try FileManager.default.createDirectory(at: baseURL, withIntermediateDirectories: true)
|
||||
_ = try FileManager.default.replaceItemAt(vmURL(name), withItemAt: from.baseURL)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue