>I'm looking for some sort of file-system-within-a-file
>type of library. Some thing that lets me create directories
>and files (inside a file); modify, append, shrink, delete, add
>those files. I don't really need permissions on the files/
>directories.
Take a look at the db library. For keys, just take the names that you would
use if you were using files (e.g., "dir1/dir2/dir3/filename"). The only
operation that you could do on real directories that doesn't map easily to
this approach is listing the contents of a directory. If that is a
requirement, it would not be hard to maintain either a comprehensive
index for the whole database, or separate indexes for each logical
directory (e.g., "dir1/dir2/dir3/.index" would be the key to a record
that just lists all the keys that start with "dir1/dir2/dir3/" and have
exactly three slashes in their name).
--Tim Smith