|
OBSOLETE: Return a pathname suitable for cacheing some result.
- Parameters:
f (often str, but could be anything
convertible to a str via repr.) - An arbitrary key, could be a pathname or a tuple of information
about a file.
tail (str or None) - something to add at the end of the constructed path.
- Returns:
tuple(str, str)
(path_to_root,path_with_tail).
Path_to_root is/will be a directory;
path_with_tail is a path to a data file within that
directory. Normally, the actual cache is at the location
os.path.join(path_to_root,path_with_tail) on the
disk; that is what you would pass as the fname
argument to load_cache or dump_cache.
- Raises:
ValueError - if suffix_to_del is specified and f
doesn't end that way.
|