Print

Print


Hi Frabrizio,

No, mv does not have a corresponding flag. You would have to do a mkdir and
ignore the return code ahead of making the mv. In any case, the mkdir and mv
should have interface options indicating the wanted behaviour.

Andy

----- Original Message ----- 
From: "Fabrizio Furano" <[log in to unmask]>
To: "Wilko Kroeger" <[log in to unmask]>
Cc: <[log in to unmask]>; "andrew Hanushevsky" <[log in to unmask]>
Sent: Wednesday, December 15, 2004 2:16 AM
Subject: Re: mkdir,mv files and dir creation


> Hi Wilko,
>
>   for the client side it's only a matter of a flag, so I can do it
quickly.
>
>   Right now I am sure that it will work for Mkdir, but I am not sure
> that it will work for Mv. Andy can comment about this.
>
>   Maybe i will commit the fix in 12 hours, today I am busy.
>   Fabrizio
>
> Wilko Kroeger wrote:
> > Hello Fabrizio
> >
> > I am testing the latest development release (20041214-1142).
> > As expected xrdcp creates now missing directories automatically (well,
> > the server is doing this).
> > The Mkdir and Mv command from the XrdClientAdmin don't do this. If some
> > directories of a pathname don't exist the command will fail.
> > Would it be possible to modify these commands so that they create
> > missing directories automatically ?
> > We will need another development release build this week and having this
> > feature would be good. Do you think this would be possible ?
> >
> >
> > Cheers,
> >   Wilko
>