Categories
data science

Reading a file using Flask – Python

This took me ages to figure out, and it was tough getting a simple straightforward answer… BTW – I’m assuming that you know all the Flask basics, so I won’t be covering that. If you don’t, I suggest you go through their amazing tutorial. This is what I want: I want my web app to […]

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 […]