function _drush_usage_get_file

8.0.x _drush_usage_get_file($required = FALSE)
6.x _drush_usage_get_file($required = FALSE)
7.x _drush_usage_get_file($required = FALSE)
5.x _drush_usage_get_file($required = FALSE)

Returns path to usage file.

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


commands/core/, line 101
Send scrubbed usage data to drush. Omits arguments and option values in order to assure that no sensitive data is shared. See


function _drush_usage_get_file($required = FALSE) {
  $file = drush_directory_cache('usage') . '/usage.txt';
  if (!file_exists($file) && $required) {
    return FALSE;

  return $file;