Jan Dubois wrote:

>On Sat, 02 Apr 2005, Steven Schubiger wrote:
>  
>
>>On  07 Oct 2003 00:00:13 +0200, Slaven Rezic <[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.
>>:
>>: In this case an entry for rename() in perlport.pod is also missing.
>>    
>>
>
>This is actually not exactly true. rename() can move files to different
>directories on Win32 as long as source and destination are on the same
>filesystem.
>
On my WinXP box, rename() can move files to different directories, 
including where those directories are on a different drive, a mapped 
network drive from another WinXP box, and even a mapped network drive 
from a Solaris box running Samba.

It seems to be rename()'ing directories that causes problems:  
sub-directories can be rename()'d from one parent directory to another 
if and only if both parent directories are on the same drive.

- 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