This probably is a very silly question, but I can’t find an appropriate answer for it.
Basically, given a folder I need to loop over all files in the folder, opening some of them. Now, the answers I find in stackoverflow and similar mentions pathlib and glob, which are modules of the standard library provided in Python versions later than 3.3. So, what’s the standard solution for this task in Python’s sublime?
Also, a related question: basically, on opening certain types of projects, I need the plugin to check and if needed tweak all script files of a certain type and location, and I’d want to do it “in the background” so to speak. Should I use threading or async programming for that? And could I get some pointers as to the relevant techniques for async/threading in Python 3.3?