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)

Returns path to usage file.

3 calls to _drush_usage_get_file()
drush_usage_send in commands/core/usage.drush.inc
Set option to send usage to Mongolab.
drush_usage_show in commands/core/usage.drush.inc
Displays usage file.
usage_drush_exit in commands/core/usage.drush.inc
Log and/or send usage data to Mongolab.

File

commands/core/usage.drush.inc, line 103
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;

  }
  return $file;
}