Organise your Flowcode projects
Posted: Fri Jan 09, 2026 9:12 pm
Another new year's resolution - organise my Flowcode (and other) projects/life generally better.
I was looking for a particular project - and memory not being what it used to be - struggled to find the version I was looking for....
Many of my projects just get thrown in the same directory - and if I'm feeling sensible have _esp32 or similar added to the name. 'Everything' should be in everyone's toolkit (from voidtools.com) (thanks to Martin for that suggestion). I often have multiple targets of the same code - and I guess I would do better to use git a little more extensively with branches for each target!
So - a small Python script - this looks through and copies all Flowcode projects to for example avr/attiny/attiny88/project - creating new directories as required and using the target attribute of the Flowcode file.
It also shifts all the other files (backup, .c, .h etc - and in the case of esp files the build directory - though this might differ for FC default scripts). As is the was with modern programming languages - there are many (many) files
- one drawback is that esp32 directories don't play nicely - so you need to do a fullclean (or delete the 'build' sub-directory) - so I might need a second batch file that goes through and cleans and rebuilds all my esp32 projects!
It doesn't move fcsx files - though could. Arduino files - the directory is 'ard' (based on the FC - target type) - though 'arduino' might be better?
So - backup everything first (of course!) - then do python organise.py (if you have the script in the directory you want to organise) or python organise.py -s src_dir -o output_dir - and in seconds your life will be a more organised and better place.
Martin
I was looking for a particular project - and memory not being what it used to be - struggled to find the version I was looking for....
Many of my projects just get thrown in the same directory - and if I'm feeling sensible have _esp32 or similar added to the name. 'Everything' should be in everyone's toolkit (from voidtools.com) (thanks to Martin for that suggestion). I often have multiple targets of the same code - and I guess I would do better to use git a little more extensively with branches for each target!
So - a small Python script - this looks through and copies all Flowcode projects to for example avr/attiny/attiny88/project - creating new directories as required and using the target attribute of the Flowcode file.
It also shifts all the other files (backup, .c, .h etc - and in the case of esp files the build directory - though this might differ for FC default scripts). As is the was with modern programming languages - there are many (many) files
It doesn't move fcsx files - though could. Arduino files - the directory is 'ard' (based on the FC - target type) - though 'arduino' might be better?
So - backup everything first (of course!) - then do python organise.py (if you have the script in the directory you want to organise) or python organise.py -s src_dir -o output_dir - and in seconds your life will be a more organised and better place.
Martin