Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

When a file is downloaded, specifying the file location is optional.  If it isn't specified the file is placed in a default 'cache folder'. The organization of the file cache is:

<cache root>/<folder> / <file handle id>/<file name>

where <folder> 's name is <file handle id> mod 1000.  (This extra level is to reduce fan-out when the number of downloaded files is much greater than 1000.)

where

<cache root> is user configurable and defaults to ~/.synapseCache

...

There is a file for each Synapse FileHandle ID that has been downloaded or uploaded.  The file has the path:

<cache root> / <folder> / <file handle id> / .cacheMap

where <folder> 's name is <file handle id> mod 1000

The file contains the location and last-modified time stamp of each downloaded or uploaded file.  The format is that of a JSON map whose keys are file paths and whose values are time stamps, e.g.

...