lib/data-store/file-data-store.js
function getFilePath (baseDir, collection) {
  let directory = getDirectory(baseDir, collection);
  let fileName = collection.substring(collection.lastIndexOf("/") + 1) + ".json";
  fileName = fileName.toLowerCase();
  return path.join(directory, fileName);
}
function getFilePath (baseDir, collection) {
  let directory = getDirectory(baseDir, collection);
  let fileName = collection.substring(collection.lastIndexOf("/") + 1) + ".json";
  fileName = fileName.toLowerCase();
  return path.join(directory, fileName);
}
function getFilePath ( baseDir , collection ) { let directory = getDirectory ( baseDir , collection ) ; let fileName = collection . substring ( collection . lastIndexOf ( "/" ) + 1 ) + ".json" ; fileName = fileName . toLowerCase ( ) ; return path . join ( directory , fileName ) ; }
Returns the full path of the JSON file for the given collection.

@param   {string}    baseDir    - (e.g. "/some/base/path")
@param   {string}    collection - (e.g. "/users/jdoe/orders")
@returns {string}               - (e.g. "/some/base/path/users/jdoe/orders.json")
Returns the full path of the JSON file for the given collection .