I'd like to check if there are any .rar
files in a directory. It doesn’t need to be recursive.
Using wildcard with os.path.isfile()
was my best guess, but it doesn't work. What can I do then?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…