Hello friends in this article we will see How to refresh directory in Python 3.9 so Basically I am take one common example for refresh directory
How to refresh directory in Python 3.9
I want refresh the downloads directory for every 15 secs.
Source Code Available below:
flag=1
while flag :
print("15 secs...")
time.sleep(155)
for file in files:
if (some condition):
print("found"+file)
flag =0
Summary :
In this article we saw How to refresh directory in Python so about this article you have any query then free to ask me