Created first disk
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
use crate::libvirt_lib_structures::DomainXMLUuid;
|
||||
use clap::Parser;
|
||||
use std::path::{Path, PathBuf};
|
||||
|
||||
@ -156,9 +157,18 @@ impl AppConfig {
|
||||
self.storage_path().join("iso")
|
||||
}
|
||||
|
||||
/// Get VM vnc sockets
|
||||
/// Get VM vnc sockets directory
|
||||
pub fn vnc_sockets_path(&self) -> PathBuf {
|
||||
self.storage_path().to_path_buf()
|
||||
self.storage_path().join("vnc")
|
||||
}
|
||||
|
||||
/// Get VM vnc sockets directory
|
||||
pub fn disks_storage_path(&self) -> PathBuf {
|
||||
self.storage_path().join("disks")
|
||||
}
|
||||
|
||||
pub fn vm_storage_path(&self, id: DomainXMLUuid) -> PathBuf {
|
||||
self.disks_storage_path().join(id.as_string())
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user