I'm facing the need to synchronize a filesystem to an ESP8266 module running Micropython with locally-edited files changing as development proceeds.
Previously I've just overwritten things selectively, but I would like to support learners synchronizing from their own edited files.
I want to avoid them...
- potentially forgetting to synchronize something that has changed (if you don't sync everything every time)
- waiting ages while everything syncs (if you sync everything every time)
- nuking a board's flash by writing it too much (if every edit leads to a full flash+upload)
Are there any utilities I've missed which do this job? Something which can be invoked like...
sync.py --port /dev/ttyUSB0 fromBaseDir toBaseDir
If there isn't anything, I might consider writing a minimal routine around the assumption that
Code: Select all
import hashlib
Code: Select all
import uhashlib