Unverified Commit 985a5e1c authored by Recolic Keghart's avatar Recolic Keghart 🎱

make dir-file-compare case- insensetive

parent 6a47fee2
......@@ -20,8 +20,10 @@ def main(argv):
libFlist = get_flist(config.library_path)
out_csv = []
print('WARNING: Case-insenstive matching.')
for fl in get_flist(inputPath):
libFile = list(filter(lambda f: os.path.basename(f) == os.path.basename(fl), libFlist))
libFile = list(filter(lambda f: os.path.basename(f).lower() == os.path.basename(fl).lower(), libFlist))
if len(libFile) == 0:
print('NOT_FOUND: {}'.format(fl))
out_csv.append('未找到,{}'.format(fuck(fl)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment