- Anything which is a subclass of dict, or has an __dict__ attribute,
is a directory. (We don't reproduce Python's lookup algorithm for
looking in the class and up the inheritance hierarchy for attributes.)
- Suppress keys containing '/' because some clients get confused
- Anything else is str()ified. Writes are implemented by calling
str(), replacing the indicated section, and calling type(old_val)(new_string). Wrong for, e.g., lists, but OK for ints and strings.
- NFS really wants a filehandle (32 bytes) to identify a file uniquely.
But writing to foo/bar really means changing the value bound to key bar
in dictionary foo. See the
website or the
source for details, because
the solution I came up with is tedious and uninteresting, even if it
might be correct.