I cannot get ArcPy to add images in subfolders.

When using ArcPy (sample code from ESRI website), I see that it finds the DIM file, but it does not import it into the mosaic dataset.

I can manually add each file one at time using the Add mosaic dataset tool, but that is extremely time consuming.

An example of my file directory would be


The scenes and dim would be located in the IMG_SPOT6_P folder. I would like to add just the SPOT6Imagery directory and the tool import all images.

Error Example

closed as off-topic by PolyGeo Aug 8 '17 at 20:31

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking help to debug/write/improve code must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Providing a clear problem statement and evidence of a code attempt will help others to help you. See: How to create a Minimal, Complete, and Verifiable example." – PolyGeo
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    What code have you tried so far? Without it, is too difficult identify the problem – aldo_tapia Aug 8 '17 at 14:19

Browse other questions tagged or ask your own question.