<p>Might be worth checking if the cloudflare IPFS gateway works for you to get access to the directory.</p>
<p>Check out <a href="https://developers.cloudflare.com/distributed-web/ipfs-gateway/#directories" rel="nofollow noreferrer">this link here</a>.</p>

CC BY-SA 4.0
2022-03-19T06:45:49.017Z
2022-03-19T06:45:49.017Z
a01
<p>I have an image directory that I've posted to IPFS with a large number of images in it. When I try to query the directory using an IPFS HTTP gateway, I get a gateway timeout error as I assume the quantity of files is so high. I am using:</p>
<pre><code>https://gateway.ipfs.io/ipfs/bafybeiakb6sdfohwdw7dtdbe..../directory
</code></pre>
<p>Is there a simple way to CURL this directory easily into a json file, or some other method where I can get the file list? I also have IPFS downloaded and installed on my Ubuntu server, but can't figure out how to list the files within this directory through there either...</p>

<nft><ipfs>
Easy way to list IPFS directory contents
# Easy way to list IPFS directory contents

(Asked by: username_0 on 2022-03-14)

I have an image directory that I've posted to IPFS with a large number of images in it. When I try to query the directory using an IPFS HTTP gateway, I get a gateway timeout error as I assume the quantity of files is so high. I am using:
https://gateway.ipfs.io/ipfs/bafybeiakb6sdfohwdw7dtdbe..../directory

Is there a simple way to CURL this directory easily into a json file, or some other method where I can get the file list? I also have IPFS downloaded and installed on my Ubuntu server, but can't figure out how to list the files within this directory through there either...

**Tags:** nft, ipfs

---

## 1 answers

### Answer by username_1 on 2022-03-19. Score: 0

Might be worth checking if the cloudflare IPFS gateway works for you to get access to the directory.

Check out [this link here](https://developers.cloudflare.com/distributed-web/ipfs-gateway/#directories).


---

