added get latest image function
This commit is contained in:
@ -9,7 +9,7 @@ use std::path::{Path, PathBuf};
|
||||
|
||||
pub const STOP_FILE_NAME: &str = "stop-experiment";
|
||||
pub const CONFIG_FILE_NAME: &str = "exp278.toml";
|
||||
pub const HOME_FOLDER_EXPERIMENT: &str = "/home/exp278"; // also where IMS-100 images are placed
|
||||
pub const HOME_FOLDER_EXPERIMENT: &str = "/home/exp278"; // also where IMS-100 images are placed
|
||||
pub const TO_GROUND_FOLDER_EXPERIMENT: &str = "/home/exp278/toGround";
|
||||
pub const TO_GROUND_LP_FOLDER_EXPERIMENT: &str = "/home/exp278/toGroundLP";
|
||||
pub const LOG_FOLDER: &str = "logs";
|
||||
@ -296,7 +296,12 @@ pub mod tasks {
|
||||
|
||||
pub fn create_low_priority_ground_dir() {
|
||||
log::debug!("Creating low priority to ground directory");
|
||||
if !Path::new(TO_GROUND_LP_FOLDER_EXPERIMENT).exists() && std::fs::create_dir_all(TO_GROUND_LP_FOLDER_EXPERIMENT).is_err() {
|
||||
log::error!("Failed to create low priority to ground directory '{}'", TO_GROUND_LP_FOLDER_EXPERIMENT);
|
||||
if !Path::new(TO_GROUND_LP_FOLDER_EXPERIMENT).exists()
|
||||
&& std::fs::create_dir_all(TO_GROUND_LP_FOLDER_EXPERIMENT).is_err()
|
||||
{
|
||||
log::error!(
|
||||
"Failed to create low priority to ground directory '{}'",
|
||||
TO_GROUND_LP_FOLDER_EXPERIMENT
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user