function drush_normalize_path

8.0.x drush_normalize_path($path)
6.x drush_normalize_path($path)
7.x drush_normalize_path($path)
5.x drush_normalize_path($path)
master 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/
Drush callback; make based on the makefile.
drush_notify_send_text in commands/core/
Send text-based system notification.
drush_sitealias_add_to_alias_path in includes/
Add a path to the array of paths where alias files are searched for.


includes/, line 83
Filesystem utilities.


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