Skip to content

Commit

Permalink
[rust] Revert function to create parent path in grid logic
Browse files Browse the repository at this point in the history
  • Loading branch information
bonigarcia committed Sep 30, 2023
1 parent a1fedb9 commit 0c925bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use crate::chrome::{ChromeManager, CHROMEDRIVER_NAME, CHROME_NAME};
use crate::edge::{EdgeManager, EDGEDRIVER_NAME, EDGE_NAMES};
use crate::files::{
create_empty_parent_path_if_not_exists, create_path_if_not_exists, default_cache_folder,
create_parent_path_if_not_exists, create_path_if_not_exists, default_cache_folder,
get_binary_extension, path_buf_to_string,
};
use crate::firefox::{FirefoxManager, FIREFOX_NAME, GECKODRIVER_NAME};
Expand Down Expand Up @@ -190,7 +190,7 @@ pub trait SeleniumManager {

if self.is_grid() {
let driver_path_in_cache = self.get_driver_path_in_cache()?;
create_empty_parent_path_if_not_exists(&driver_path_in_cache)?;
create_parent_path_if_not_exists(&driver_path_in_cache)?;
Ok(fs::rename(driver_zip_file, driver_path_in_cache)?)
} else {
let driver_path_in_cache = self.get_driver_path_in_cache()?;
Expand Down

0 comments on commit 0c925bb

Please sign in to comment.