Quantcast
Channel: BlogoSfera » OS
Viewing all articles
Browse latest Browse all 176

Python Monitor Directories and Subdirectories for file additions/changes

$
0
0

I have created this code to retrieve list paths of all the files within a certain directory and its subdirectories: our_dir='c:\\mydocs' walk=os.walk(our_dir) for path, folders, files in walk: for f in files: file_path=os.path.join(path,f) print file_path Or to write these paths into a text file. How can I run the program on a daily basis and [...]

The post Python Monitor Directories and Subdirectories for file additions/changes appeared first on BlogoSfera.


Viewing all articles
Browse latest Browse all 176

Trending Articles