Skip to content

Instantly share code, notes, and snippets.

@scola
scola / alljava.py
Created March 26, 2018 05:00
get all java code to generate one txt
import os
import glob
def getalljava(folder):
for file in os.listdir(folder):
if os.path.isdir(os.path.join(folder, file)):
getalljava(os.path.join(folder, file))
elif file.endswith(".java") or file.endswith("java.txt"):
alljava.append(os.path.join(folder, file))