diff options
Diffstat (limited to 'test_utils/src')
| -rw-r--r-- | test_utils/src/lib.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test_utils/src/lib.rs b/test_utils/src/lib.rs index 6c177bc..84ae8a9 100644 --- a/test_utils/src/lib.rs +++ b/test_utils/src/lib.rs | |||
| @@ -1021,9 +1021,11 @@ where | |||
| 1021 | .trim() | 1021 | .trim() |
| 1022 | .to_string(), | 1022 | .to_string(), |
| 1023 | ); | 1023 | ); |
| 1024 | for entry in std::fs::read_dir(src)? { | 1024 | for entry in (std::fs::read_dir(src)?).flatten() { |
| 1025 | let src_path = entry?.path(); | 1025 | let src_path = entry.path(); |
| 1026 | std::fs::copy(&src_path, &git_exec_dir.join(src_path.file_name().unwrap()))?; | 1026 | if let Some(name) = src_path.file_name() { |
| 1027 | let _ = std::fs::copy(&src_path, &git_exec_dir.join(name)); | ||
| 1028 | } | ||
| 1027 | } | 1029 | } |
| 1028 | } | 1030 | } |
| 1029 | std::fs::copy( | 1031 | std::fs::copy( |