Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while True:
- wait = False
- for i in os.listdir("D:/Downloads"):
- if ".crdownload" in i:
- wait = True
- break # no need to check other files
- if not wait:
- break # exit `while True`
- time.sleep(0.5)
- print("download complete")
Add Comment
Please, Sign In to add comment