# Listing files of refence artifacts with temporary mounted folder (Azure)

**URL:** <https://community.wandb.ai/t/listing-files-of-refence-artifacts-with-temporary-mounted-folder-azure/1384>\
**Category:** W&B Help\
**Tags:** artifacts, wandb\
**Created:** [November 25, 2021, 9:53am UTC](https://community.wandb.ai/t/listing-files-of-refence-artifacts-with-temporary-mounted-folder-azure/1384 "2021-11-25T09:53:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![desertgator](https://avatars.discourse-cdn.com/v4/letter/d/9dc877/32.png) [@desertgator](https://community.wandb.ai/u/desertgator)\
**Post date:** [November 25, 2021, 9:53am UTC](https://community.wandb.ai/t/listing-files-of-refence-artifacts-with-temporary-mounted-folder-azure/1384/1 "2021-11-25T09:53:15Z")

</div>

I am trying to make wandb work with Azure for versioning my datasets.  
My dataset is too big for any upload, so I am keeping it in Azure and add it by reference.  
I am using the file based reference (file:///) for a folder that is mounted to the compute instance.  
Registering the dataset, checksumming it etc all works fine.

My problem is now how I _USE_ the artifact.

Since the folder is mounted by azure using a randomly generated name each time I cannot use the stored reference name. What I am doing right now is using the keys of the manifest entries:  
`artifact.manifest.entries.keys()`  
This gives me all the filenames and I manually concat it to the mounted folder pathname.

Is there a better, less hacky, way of doing it? (Or even a better way to use Azure, since wandb supports s3 and gc?)  
`.download()` is no option since the dataset is to big and the mounted folder is fine. `.checkout()` does not work, since the folder also contains other files which I do not want to delete. `.get()` and similar also dont work since I dont know the file paths.

In my ideal world I would just have a function `artifact.files(root="mount_path", verify=True)` which returns a list of all filenames and verifies they are correct via checksum. So I can just use the dataset and be sure it is the same one.

Thank you! Artifacts are such a great addition to wandb and I would love to use them 🙂

---

<div class="post-metadata">

**Author:** ![lesliewandb](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/lesliewandb/32/369_2.png) [@lesliewandb](https://community.wandb.ai/u/lesliewandb)\
**Post date:** [November 29, 2021, 9:35pm UTC](https://community.wandb.ai/t/listing-files-of-refence-artifacts-with-temporary-mounted-folder-azure/1384/2 "2021-11-29T21:35:32Z")

</div>

Hi DesertGator,

It looks like add\_reference ([https://docs.wandb.ai/ref/python/public-api/artifact#add\_reference](https://docs.wandb.ai/ref/python/public-api/artifact#add_reference)) is what you’re looking for. I’m going to double check with our engineering team to make sure that we have this feature for azure though.

Warmly,  
Leslie

---

<div class="post-metadata">

**Author:** ![lesliewandb](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/lesliewandb/32/369_2.png) [@lesliewandb](https://community.wandb.ai/u/lesliewandb)\
**Post date:** [November 30, 2021, 1:08pm UTC](https://community.wandb.ai/t/listing-files-of-refence-artifacts-with-temporary-mounted-folder-azure/1384/3 "2021-11-30T13:08:02Z")

</div>

I double checked and as long as path to the file is accessible over https you should be able to use add\_reference.

Warmly,  
Leslie

---

<div class="post-metadata">

**Author:** ![lesliewandb](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/lesliewandb/32/369_2.png) [@lesliewandb](https://community.wandb.ai/u/lesliewandb)\
**Post date:** [December 3, 2021, 2:27pm UTC](https://community.wandb.ai/t/listing-files-of-refence-artifacts-with-temporary-mounted-folder-azure/1384/4 "2021-12-03T14:27:20Z")

</div>

Was this able to help you, or are you still experiencing this problem?

---

<div class="post-metadata">

**Author:** ![lesliewandb](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/lesliewandb/32/369_2.png) [@lesliewandb](https://community.wandb.ai/u/lesliewandb)\
**Post date:** [December 6, 2021, 4:45pm UTC](https://community.wandb.ai/t/listing-files-of-refence-artifacts-with-temporary-mounted-folder-azure/1384/5 "2021-12-06T16:45:13Z")

</div>

Hi DesertGator, since we have not heard back from you we are going to close this request. If you would like to re-open the conversation, please let us know!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/1X/366b649231631dbab896843020da0056074ac79d.png) [@system](https://community.wandb.ai/u/system)\
**Post date:** [January 24, 2022, 9:54am UTC](https://community.wandb.ai/t/listing-files-of-refence-artifacts-with-temporary-mounted-folder-azure/1384/6 "2022-01-24T09:54:07Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
