Skip to content

Commit 4124beb

Browse files
committed
added missing file
1 parent d6ef1b5 commit 4124beb

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

create_files_index.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import os
2+
import sys
3+
4+
def list_java_files(main_dir) -> list:
5+
directory = main_dir
6+
java_files = []
7+
for root, dirs, files in os.walk(directory):
8+
for file in files:
9+
if file.endswith(".java"):
10+
java_files.append(os.path.join(root.replace("{}/".format(main_dir), ""), file))
11+
12+
return java_files
13+
14+
#with open(os.path.join(sys.argv[1], "files_index.txt"), "w") as fit:
15+
# fit.write("\n".join(list_java_files(sys.argv[1])))

0 commit comments

Comments
 (0)