Categories
Uncategorized

Simple File Lists – python

How to make quick directory lists in python. All of these will use listdir in the os module. so we need to import it first Now we want to list all the files in a directory called my_folder. But the trick is that we only want the text files. Another thing we can do is […]

Categories
Uncategorized

Synchronising two folders – Python

It’s friday…more code for sh*ts and giggles. Limitations and that…. This is a very simple and basic script that will synchronise two directories. It works as long as the files have the same name. It works by measuring the time the files were changed and replacing the older one with the newest one. Again…it will […]