@pimms.value<EOL><INDENT>def psuedo_dirs(path, supplemental_paths, actual_cache_path):<DEDENT>
<EOL>spaths = {}<EOL>cp = None<EOL>n = <NUM_LIT:0><EOL>for (s,p) in six.iteritems(supplemental_paths):<EOL><INDENT>if actual_cache_path:<EOL><INDENT>cp = os.path.join(actual_cache_path, '<STR_LIT>', s)<EOL>if not os.path.isdir(cp): os.makedirs(os.path.abspath(cp), <NUM_LIT>)<EOL>n += <NUM_LIT:1><EOL><DEDENT>spaths[s] = pseudo_dir(p, delete=False, cache_path=cp)<EOL><DEDENT>if actual_cache_path:<EOL><INDENT>if n > <NUM_LIT:0>: cp = os.path.join(actual_cache_path, '<STR_LIT>')<EOL>else:     cp = actual_cache_path<EOL>if not os.path.isdir(cp): os.makedirs(os.path.abspath(cp), <NUM_LIT>)<EOL><DEDENT>spaths[None] = pseudo_dir(path, delete=False, cache_path=cp)<EOL>return pyr.pmap(spaths)<EOL>
fmap.pseudo_dirs is a mapping of pseduo-dirs in the file-map fmap. The primary path's
pseudo-dir is mapped to the key None.