Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Commit

Permalink
EX-2304 filesync: create the right path (#2449)
Browse files Browse the repository at this point in the history
use dest_dir instead of src_dir when creating
paths to copy data

Signed-off-by: Ben Evans <beevans@whamcloud.com>
  • Loading branch information
beevans authored and jgrund committed Dec 22, 2020
1 parent bf5b0ad commit daee368
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iml-agent/src/action_plugins/stratagem/action_filesync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ fn do_rsync<'a>(
}| async move {
let src_file = src_root.join(&file_path);
let dest_file = dest_root.join(&file_path);
let mut dest_dir = PathBuf::from(&src_file);
let mut dest_dir = PathBuf::from(&dest_file);
dest_dir.pop();
fs::create_dir_all(&dest_dir).await?;

Expand Down Expand Up @@ -92,7 +92,7 @@ fn do_dsync<'a>(
let mpi_count = env::get_openmpi_count();
let src_file = src_root.join(&file_path);
let dest_file = dest_root.join(&file_path);
let mut dest_dir = PathBuf::from(&src_file);
let mut dest_dir = PathBuf::from(&dest_file);
dest_dir.pop();
fs::create_dir_all(&dest_dir).await?;

Expand Down

0 comments on commit daee368

Please sign in to comment.