0

I get a strange behaviour on 2 websites under Drupal 8. When I download a module via Drush, the path contain two consecutive slashes like this.

Project key_value (8.x-1.1) downloaded to /home/www/example/sited8//modules/contrib/key_value.

In admin/config/media/file-system, no extra slash is shown in the path settings.

URL de base des fichiers publics       http://example.com/sites/default/files
Chemin du système public de fichier sites/default/files

Perhaps it could be set in another part of the website.

Could it be a bug?

1

It's an artifact of how Drush builds the path. It looks at your Drupal project dir, and where it's placing the the project download, then appends it together without concern for a trailing slash in the Drupal project dir. It has nothing to do with your Drupal project file settings

Is it bug? Perhaps if you consider it a UX problem. As far as POSIX is concerned, the double slash is treated as one so it shouldn't matter in terms of referencing the directory. Whatever the case, drush pm-download is deprecated in later versions.

  • Thanks to explain, I didn't encounter issues despite this double slash. What is the new command for pml with Drush 8 so ? – webmaster pf Oct 25 '18 at 13:32
  • There is no equivalent with Drush 9 alone. Drush 9 is giving a users a shove toward composer-driven projects where composer require drupal/project_slug would be the Drush 8 equivalent of drush pm-download project_slug. – Shawn Conn Oct 25 '18 at 16:24

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.