I am pretty new to Python, but I tried to learn the basics to help in my research in geology.
In any case, I have several files that, as soon as I extracted them from zip files (incidentally, a painfully slow process), create several hundred subdirectories with 2-3 files in each. Now I want to extract all these files ending in 'dem.tif' and put them in a separate file (not copy, but move).
Perhaps I tried to go to this deep end, but the code I wrote works without errors, so it should not find the files (which exist!), Because it gives me an else expression. Here is the code I created
import os src = 'O:\DATA\ASTER GDEM\Original\North America\UTM Zone 14\USA\Extracted'
Bjebn source share