Is there a way to create a subfolder in memory in ArcPy?
For example, instead of temporarily saving a dataset under:
I would like to save it under:
This spits out an error message, of course. But is there a way to still achieve the same effect?
Background: I am working on a tool that create a lot of intermediate data that does not need to be saved. Right now I am saving each intermediate output into separate folders, which makes it easier to check out the outputs during testing, and it avoids the annoyance of filtering when using things like arcpy.ListFeatureClasses() (that is actually the number one reason for using all these subfolders):
Now that I know that I am getting the correct results I would like to save most of these steps in_memory, to speed up the tool. It would be ideal if I could just adopt this structure and change a few paths in my script instead of adding a lot of filter logic.