We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc8ff4f commit e02dd2eCopy full SHA for e02dd2e
rust/src/metadata.rs
@@ -25,7 +25,8 @@ use serde::{Deserialize, Serialize};
25
26
use crate::Logger;
27
28
-const METADATA_FILE: &str = "selenium-manager.json";
+const METADATA_FILE_OLD: &str = "selenium-manager.json";
29
+const METADATA_FILE: &str = "se-metadata.json";
30
31
#[derive(Serialize, Deserialize)]
32
pub struct Browser {
@@ -50,6 +51,10 @@ pub struct Metadata {
50
51
}
52
53
fn get_metadata_path(cache_path: PathBuf) -> PathBuf {
54
+ let old_metadata = cache_path.join(METADATA_FILE_OLD);
55
+ if old_metadata.exists() {
56
+ fs::remove_file(old_metadata).unwrap_or_default();
57
+ }
58
cache_path.join(METADATA_FILE)
59
60
0 commit comments