Kimo, thanks for the reply.
Actually my math was horribly off, it's closer to 20,000 shapefiles in the geodatabase.
Python can easily hold a list much bigger than 20k so why is listfeatureclasses not working..is really my question? I looked, searched for any limit on the function's return list but couldn't find any information. Considering it's a most basic dbase i/o call, accessing the shapefiles and returning them ina list, even 20 trillion....should be no issue.
To address your question, yes there was absolutely a better way to write the code to avoid 20k files, in actuality I can achieved the results with generating 0 files. But, I already ran it for the past 4 days, and the results I need to calculate frequency are there...so I was really hoping to simply iterate through all of the files and calculate frequency. I didn't add that code at the end, well, because I just didn't realize solving an OD matrix of that size would present an accessibility issue.
I was under the impression that the student's requesting the data actually needed the individual streets per route for some analysis, when in fact they really only needed frequency of each street as it appears in the OD matrix solve, but I didn't 'get that' until the next week.
I gave up trying to access the data in the geodatabase and am spending another 2 days re-solving the 20,000 routes, spatially selecting the streets associated with each route, and pushing each street's unique id to a list, which is easily analyzed for frequency with Counter and then joined to the Streets. No saving the routes/streets is actually necessary 🙂
But hey, at least now I have a program that creates polylines of streets along OD Matrix solved routes, and frequency tables!
however I don't know of a better way to acquire the information that is required. Because arcgis does not do route analysis for an OD Matrix (it only provides a cost report), if I am wanting to show/analyze all of the streets that are involved in, say a 70x300 OD Matrix for (a very large city)