function drush_server_home

8.0.x environment.inc drush_server_home()
6.x environment.inc drush_server_home()
7.x environment.inc drush_server_home()
3.x environment.inc drush_server_home()
4.x environment.inc drush_server_home()
5.x environment.inc drush_server_home()
master environment.inc drush_server_home()

Return the user's home directory.

9 calls to drush_server_home()
drush_directory_cache in includes/environment.inc
The path to the global cache directory.
drush_preflight_backup_dir in includes/filesystem.inc
Decide where our backup directory should go
drush_preflight_tilde_expansion in includes/preflight.inc
Look for instances of arguments or parameters that start with "~/". Replace these with "$HOME/".
InitCommandFile::initializeDrush in lib/Drush/CommandFiles/core/InitCommandFile.php
Initialize local Drush configuration
_drush_config_file in includes/context.inc
Return a list of possible drushrc file locations.

... See full list

File

includes/environment.inc, line 630
Functions used by drush to query the environment and setting the current configuration.

Code

function drush_server_home() {
  try {
    return Path::getHomeDirectory();
  }
  catch (Exception $e) {
    return NULL;
  }
}