store a tree of data in files and directories