Answers for "python monitor directory for files count"

0

python monitor directory for files count

import os.path
path = os.getenv('HOME') + '/python'
num_files = len([f for f in os.listdir(path)if os.path.isfile(os.path.join(path, f))])
Posted by: Guest on November-27-2020

Code answers related to "python monitor directory for files count"

Python Answers by Framework

Browse Popular Code Answers by Language