in scripts/check-ctrlcode.py [0:0]
def check_dir(path, ext):
for f in os.listdir(path):
if(f[0] == "."):
continue
fullpath = os.path.join(path, f)
if(os.path.isdir(fullpath)):
check_dir(fullpath, ext)
continue
exts = os.path.splitext(f)
if(exts[1] != ext):
continue
check_ctrlcode(fullpath)