I add a really huge directory to ipfs with command:
ipfs add --nocopy -r /root/.ipfs/my_super_huge_mounted_folder
Then I FORGET the hash of that folder.
(How to get access to the hash of that folder?)
ipfs filestore ls
gives some hashes which I believe are the hashes of segments of each file, but nowhere I found a hash of a directory.