function drush_normalize_path

8.0.x filesystem.inc drush_normalize_path($path)
6.x filesystem.inc drush_normalize_path($path)
7.x filesystem.inc drush_normalize_path($path)
5.x filesystem.inc drush_normalize_path($path)
master filesystem.inc drush_normalize_path($path)

Makes sure the path has only path separators native for the current operating system

Related topics

3 calls to drush_normalize_path()
drush_make in commands/make/make.drush.inc
Drush callback; make based on the makefile.
drush_notify_send_text in commands/core/notify.drush.inc
Send text-based system notification.
drush_sitealias_add_to_alias_path in includes/sitealias.inc
Add a path to the array of paths where alias files are searched for.

File

includes/filesystem.inc, line 83
Filesystem utilities.

Code

function drush_normalize_path($path) {
  if (drush_is_windows()) {
    $path = str_replace('/', '\\', strtolower($path));
  }
  else {
    $path = str_replace('\\', '/', $path);
  }
  return drush_trim_path($path);
}