Archives by date

You are browsing the site archives by date.

Remove compiled files from directory

I’m running through a bunch of examples and exercises in C++ Primer Plus and I needed a way to remove my compiled scripts from my folder. Attached is a python script which will recursively remove all compiled files from a folder tree. import os count = 0; for (path, dirs, files) in os.walk(os.getcwd()): for file […]