From 99c99d72439b7c238a8a9301ec9cc599d05c8d8b Mon Sep 17 00:00:00 2001 From: syamatoo Date: Thu, 13 Oct 2022 20:51:51 +0900 Subject: [PATCH] Create .gitkeep file on testcases in/out dir. --- src/web/retrieve_testcases.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/web/retrieve_testcases.rs b/src/web/retrieve_testcases.rs index d1c6456..bcb6e53 100644 --- a/src/web/retrieve_testcases.rs +++ b/src/web/retrieve_testcases.rs @@ -399,9 +399,11 @@ pub(crate) fn save_test_cases( if !empty { crate::fs::create_dir_all(path.with_file_name(&bin_alias).join("in"))?; + crate::fs::write(path.with_file_name(&bin_alias).join("in").join(".gitkeep"), "")?; } if contains_any_out { crate::fs::create_dir_all(path.with_file_name(&bin_alias).join("out"))?; + crate::fs::write(path.with_file_name(&bin_alias).join("out").join(".gitkeep"), "")?; } if let TestSuite::Batch(BatchTestSuite { cases, extend, .. }) = &mut test_suite {