code: function getFileFromReq(req, res) {
      var file;
      file = req.params[0];
      if ('' === file || 'undefined' === typeof file) {
          res.status(404).send('No file specified.');
          return false;
      }
      else if (file.lastIndexOf('\/') === (file.length - 1)) {
          // Removing the trailing slash because it creates:
          // Error: ENOTDIR in fetching the file.
          file = file.substring(0, file.length - 1);
      }
      return file;
  }
docs: ### getFileFromReq
  
  Extracts the file from an incoming request (params[0])
  
  If the request is malformed, it sends a 404 error and returns
  
  @param {object} req The request object from Express
  @param {object} res The respond object from Express
  
  @return {string|boolean} file The requested file or false, if the
  the request was malformed
  
  @see getFileFromReq