function _drush_usage_get_file

8.0.x usage.drush.inc _drush_usage_get_file($required = FALSE)
6.x usage.drush.inc _drush_usage_get_file($required = FALSE)
7.x usage.drush.inc _drush_usage_get_file($required = FALSE)
5.x usage.drush.inc _drush_usage_get_file($required = FALSE)
3 calls to _drush_usage_get_file()
drush_usage_send in commands/core/usage.drush.inc
drush_usage_show in commands/core/usage.drush.inc
usage_drush_exit in commands/core/usage.drush.inc
Log and/or send usage data to Mongolab.

File

commands/core/usage.drush.inc, line 82
Send scrubbed usage data to drush. Omits arguments and option values in order to assure that no sensitive data is shared. See http://drupal.org/node/1246738.

Code

function _drush_usage_get_file($required = FALSE) {
  $file = drush_directory_cache('usage') . '/usage.txt';
  if (!file_exists($file) && $required) {
    return FALSE; // drush_set_error('DRUSH_NO_USAGE_FILE', dt("No usage file; set $options['drush_usage_log'] = TRUE; in a .drushrc.php file to enable."));
  }
  return $file;
}