Skip to content

Commit efd62e1

Browse files
add wildcard script
1 parent 3ebd870 commit efd62e1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

code/tests/tools/wildcard.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import glob
2+
3+
# Collect all .c and .cpp files in the cases directory (including subdirectories)
4+
source_files = glob.glob("cases/*.c", recursive=True) + glob.glob("cases/*.cpp", recursive=True)
5+
6+
# Print each file name with "cases/" prefix
7+
for file in source_files:
8+
print("cases/" + (file[len("cases/"):] if file.startswith("cases/") else file))

0 commit comments

Comments
 (0)