function drush_core_drupal_directory

8.0.x core.drush.inc drush_core_drupal_directory($target = 'root')
6.x core.drush.inc drush_core_drupal_directory($target = 'root')
7.x core.drush.inc drush_core_drupal_directory($target = 'root')
3.x core.drush.inc drush_core_drupal_directory($target = 'root')
4.x core.drush.inc drush_core_drupal_directory($target = 'root')
5.x core.drush.inc drush_core_drupal_directory($target = 'root')
master core.drush.inc drush_core_drupal_directory($target = 'root')

File

commands/core/core.drush.inc, line 715
Core drush commands.

Code

function drush_core_drupal_directory($target = 'root') {
  $path = _drush_core_directory($target);

  if (isset($path)) {
    drush_print($path);
  }
  else {
    return drush_set_error(dt('Core directory path !target not found.', array('!target' => $target)));
  }

  return TRUE;
}