# Create and edit unixfs by hand

**URL:** <https://discuss.ipfs.tech/t/create-and-edit-unixfs-by-hand/4623>\
**Category:** Help\
**Created:** [January 5, 2019, 2:51pm UTC](https://discuss.ipfs.tech/t/create-and-edit-unixfs-by-hand/4623 "2019-01-05T14:51:09Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![leerspace](https://avatars.discourse-cdn.com/v4/letter/l/94ad74/32.png) [@leerspace](https://discuss.ipfs.tech/u/leerspace)\
**Post date:** [January 5, 2019, 3:36pm UTC](https://discuss.ipfs.tech/t/create-and-edit-unixfs-by-hand/4623/2 "2019-01-05T15:36:36Z")

</div>

Take a look at the `ipfs object` command. Here’s an example of adding files and folders in IPFS to an existing directory.

> [@Join two folders?](https://discuss.ipfs.tech/t/join-two-folders/3440/4):
>
> I’m not sure there’s a single command that will do this easily. But here’s a simple proof of concept script that will do this. Assuming HASH is the hash of a folder in IPFS, this script will loop through the contents of a local folder named test2 and add the contents to the existing directory hash. The final hash that’s spit out by the script is the hash of the combined directory. #!/bin/bash # hash of folder currently in IPFS HASH="QmW85q9pmby55reZb9YrcLRr5L2gHcvTFGoSmjADCbhq1w" FOLDER2=".…

---

_[View the full topic](https://discuss.ipfs.tech/t/create-and-edit-unixfs-by-hand/4623)._
