I know that IPFS supports directories additionally to just files. But I don't quite understand how they work, and more importantly what they can do.
I'm hoping directories might be able to provide a workaround to needing IPNS for every aspect of a dynamic website, as is implied by file immutability. If files could be added to directories in which they may be referenced by a file name, this would make a lot of additional abilities possible.
First of all I wanted to know how you can add a file to a directory or remove it from one. Is there a command of the form "ipfs add my_file.jpg ipns_name.com/my_directory"?
If that's possible: Can a file be referenced by its file name rather than its hash from a directory?
Lastly: Can directories be given specific rights protected by a key or password? For instance: Only the owner can delete files from the directory, but others can add new files or read existing files.