Steven Schubiger wrote:

>On  5 Oct 2003, Phill Wolf <[EMAIL PROTECTED]> wrote:
>
>: CPAN.pm (invoked as cpan in the command shell) reports a permission 
>: problem trying to move a directory. The trouble is that CPAN.pm is using
>: the rename() function, which in Win32 can change a file's name but not 
>: move it from one directory to another. A convenient solution is for 
>: CPAN.pm to use File::Copy::move() instead. CPAN.pm already has a "use" 
>: statement for File::Copy anyway.
>: 
>: diff:
>: 3948c3948
>: &lt;         rename($distdir,$packagedir) or
>: ---
>:  &gt;         File::Copy::move($distdir,$packagedir) or
>: 
>: CPAN.pm has many other instances of rename(). I haven't checked them. 
>: But making the one change above made CPAN.pm function well enough to 
>: install some modules.
>  
>
I believe it is all the directory renames that need changing.  rename() 
works fine on Win32 for files, but can't move a directory to a different 
filesystem.

- Steve


------------------------------------------------
Radan Computational Ltd.

The information contained in this message and any files transmitted with it are 
confidential and intended for the addressee(s) only.  If you have received this 
message in error or there are any problems, please notify the sender 
immediately.  The unauthorized use, disclosure, copying or alteration of this 
message is strictly forbidden.  Note that any views or opinions presented in 
this email are solely those of the author and do not necessarily represent 
those of Radan Computational Ltd.  The recipient(s) of this message should 
check it and any attached files for viruses: Radan Computational will accept no 
liability for any damage caused by any virus transmitted by this email.

Reply via email to