fileFor method

File fileFor(
  1. String id
)

Path of the snapshot file for id.

The id is base64url encoded, so any string works as an id. Very long ids are shortened and suffixed with a stable hash to stay under file name limits.

Implementation

File fileFor(String id) {
  return File('${directory.path}${Platform.pathSeparator}${_fileName(id)}');
}