# How to get the CID of a filename from a folder?

**URL:** <https://discuss.ipfs.tech/t/how-to-get-the-cid-of-a-filename-from-a-folder/13394>\
**Category:** Kubo\
**Tags:** files\
**Created:** [February 8, 2022, 12:40am UTC](https://discuss.ipfs.tech/t/how-to-get-the-cid-of-a-filename-from-a-folder/13394 "2022-02-08T00:40:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DaniellMesquita](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/daniellmesquita/32/7300_2.png) [@DaniellMesquita](https://discuss.ipfs.tech/u/DaniellMesquita)\
**Post date:** [February 8, 2022, 12:40am UTC](https://discuss.ipfs.tech/t/how-to-get-the-cid-of-a-filename-from-a-folder/13394/1 "2022-02-08T00:40:30Z")

</div>

You know the CID of a folder, and can get the full files list without downloading the whole folder; but how to download only a specific file name? For example, download only `new_patch_at.json`?

---

<div class="post-metadata">

**Author:** ![Jorropo](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/jorropo/32/3230_2.png) [@Jorropo](https://discuss.ipfs.tech/u/Jorropo)\
**Post date:** [February 8, 2022, 12:43am UTC](https://discuss.ipfs.tech/t/how-to-get-the-cid-of-a-filename-from-a-folder/13394/2 "2022-02-08T00:43:44Z")

</div>

```auto
ipfs ls <CID of the folder>

```
