# How to create an IPFS folder without having original files?

**URL:** <https://discuss.ipfs.tech/t/how-to-create-an-ipfs-folder-without-having-original-files/15038>\
**Category:** Kubo\
**Tags:** go-ipfs\
**Created:** [August 24, 2022, 3:48pm UTC](https://discuss.ipfs.tech/t/how-to-create-an-ipfs-folder-without-having-original-files/15038 "2022-08-24T15:48:12Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![ylempereur](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/ylempereur/32/5528_2.png) [@ylempereur](https://discuss.ipfs.tech/u/ylempereur)\
**Post date:** [August 24, 2022, 5:49pm UTC](https://discuss.ipfs.tech/t/how-to-create-an-ipfs-folder-without-having-original-files/15038/4 "2022-08-24T17:49:10Z")

</div>

If you want something a little more “hands on”, first create the following json file (I named mine dag.json):

```auto
{
	"Data": {
		"/": {
			"bytes": "CAE"
		}
	},
	"Links": [
		{
			"Hash": {
				"/": "Qmae3RedM7SNkWGsdzYzsr6svmsFdsva4WoTvYYsWhUSVz"
			},
			"Name": "file1.txt",
			"Tsize": 14
		},
		{
			"Hash": {
				"/": "QmUtkGLvPf63NwVzLPKPUYgwhn8ZYPWF6vKWN3fZ2amfJF"
			},
			"Name": "file2.txt",
			"Tsize": 14
		}
	]
}

```

Then add it to your node:

```auto
> ipfs dag put --store-codec=dag-pb dag.json
bafybeidtuvmy7ratlnfkuh5pkz4whjvqa3367bok43ozcm4oet2epypgwy
> ipfs cid format -v=0 bafybeidtuvmy7ratlnfkuh5pkz4whjvqa3367bok43ozcm4oet2epypgwy
QmW85q9pmby55reZb9YrcLRr5L2gHcvTFGoSmjADCbhq1w

```

As you can see, you end up with the same CID for the folder.  
😊

---

_[View the full topic](https://discuss.ipfs.tech/t/how-to-create-an-ipfs-folder-without-having-original-files/15038)._
