First of all, great module.
I have managed to successfully install drush on my local windows box. For the most part i have everything working fine.
i can use drush dl , most of the other drush commands.

However i want to download modules in to a subdir of my modules folder of my installation so i tried the following -

drush dl modulename --destination=www/sites/all/modules/contrib.
I have also tried various other combinations from different folder levels + adding the full path in the --destination parameter as such -

drush dl modulename --destination=C:\project\www\sites\all\modules\contrib.

All of the above return the error saying - The destination directory 1/ does not appear to exist.

Can anyone give any pointers to correctly using the --destination on a windows machine?
thanks.

Comments

greg.1.anderson’s picture

Are you using drush HEAD? This might be a duplicate of #636738: tar command doesn't work on windows or solaris, which was only recently fixed and committed.

tayzlor’s picture

@greg.1.anderson Im only using the latest release, not HEAD, but Drush is able to unzip the package that comes down easy enough, i just cant specify which folder in my directory i want the download to come into if that helps?

greg.1.anderson’s picture

I didn't look into your bug, and don't have time to right now. It would be helpful if you checked out drush from CVS (see the "cvs instructions" tab on the drush project home page) and try to reproduce the problem. It might already be fixed, or this might be something else.

tayzlor’s picture

checked out HEAD from CVS, tested this functionality and the problem still exists.

moshe weitzman’s picture

Status: Active » Postponed (maintainer needs more info)

pls try with head again. we improved tar functionality

greg.1.anderson’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

No feedback. Please re-open with more information if needed.

azovsky’s picture

Version: All-Versions-2.1 »
Status: Closed (fixed) » Needs review

Hi,

Im have this error.

D:\projects\www>drush dl pathauto --destination=modules/contrib/
The directory 1/ does not exist.
Would you like to create it? (y/n): y
Project pathauto (6.x-1.3) downloaded to 1/pathauto.                   [success]
No release history was found for the requested project (profiles).       [error]
An error occurred at function : drush_pm_download                        [error]

BUT! It works (without --destination):

D:\projects\www>drush dl pathauto
Project pathauto (6.x-1.3) downloaded to                               [success]
D:/projects/www/sites/all/modules/pathauto.

Using:

  • Drush All-Versions-HEAD (2010-Jun-25)
  • Windows 7 Home Premium (Win32)
  • PHP 5.2.11
  • Apache 2.2.14
  • MySQL 5.1

In what may be the problem?

moshe weitzman’s picture

Status: Needs review » Postponed (maintainer needs more info)

could someone on windows try to reproduce this and find a fix?

greg.1.anderson’s picture

Component: Code » PM (dl, en, up ...)
Status: Postponed (maintainer needs more info) » Closed (duplicate)