Skip to content

Commit 2d1ded6

Browse files
Assumed wrong dir-name format
1 parent 7135c50 commit 2d1ded6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/metadata.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,16 @@ pub fn list_projects_by_language_name(
147147
}
148148

149149
/// Lists projects by directory name.
150+
/// Note: This function assumes you are referencing the directory *structure* under the `framework`
151+
/// directory.
152+
/// Example: `dir_name` = "Java/gemini"
150153
pub fn list_projects_by_dir_name(
151154
dir_name: &str,
152155
test_type: Option<&str>,
153156
) -> ToolsetResult<Vec<Project>> {
154157
let mut projects = Vec::new();
155158
let mut tfb_path = io::get_tfb_dir()?;
156-
tfb_path.push(&format!("frameworks/*/{}/config.toml", dir_name));
159+
tfb_path.push(&format!("frameworks/{}/config.toml", dir_name));
157160
for path in glob(tfb_path.to_str().unwrap()).unwrap() {
158161
let path_buf: &PathBuf = &path.unwrap();
159162
let project_name = config::get_project_name_by_config_file(&path_buf)?;

0 commit comments

Comments
 (0)