Hi @Dave ,
Welcome to Microsoft Q&A forum and thanks for posting your query.
Thanks for the details provided but I'm still trying to understand from where (Source - Is it a Azure blob storage/On Prem location or something else) the .py and dependency files ( lib directory ) are copied to ADLS Gen2 location and what is process that is being used to copy the files and lib folder.
I'm assuming that you are using ADF copy activity to copy those files and directory from x source to ADLS gen2 and then pointing ADF Custom Batch activity to the new ADLS Gen2 location. Please correct if I misunderstood your requirement.
If you agree with my understanding, then I would suggest you to please check this doc which has detailed info on how to preserve the directory structure using Copy activity in ADF: ADF Copy activity - recursive and copyBehavior examples
When you select the recursive property to true under copy activity source settings and copyBehavior as preserveHierarchy under sink settings then the target folder is created with the same structure as the source.
Copy source settings:
Copy sink settings:
Hope this info helps. Do let us know if you have further query.
----------
- Please don't forget to click on
and upvote
button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how - Want a reminder to come back and check responses? Here is how to subscribe to a notification
- If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators