How to refresh directory in Python

Spread the love

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

sachin Pagar

I am Mr. Sachin pagar Embedded software engineer, the founder of Sach Educational Support(Pythonslearning), a Passionate Educational Blogger and Author, who love to share the informative content on educational resources.

Leave a Reply