Hi Fabrizio, Having an option to do this (eventhough most people will always specify it) is good, since it allows one to maintain some sort of POSIX compatability. Andy ----- Original Message ----- From: "Fabrizio Furano" <[log in to unmask]> To: "Andrew Hanushevsky" <[log in to unmask]> Cc: "Wilko Kroeger" <[log in to unmask]>; <[log in to unmask]> Sent: Thursday, December 16, 2004 4:47 AM Subject: Re: mkdir,mv files and dir creation > Hi, > > as a quick fix I made Mkdir behave by default like mkdir -p. I just > committed. To get a similar behavior from Mv, the way suggested by Andy > can now be used. > > Since it seems that almost everybody is using the perl wrapper to > access the XrdclientAdmin interface, I'd like not to change it too much > often, so it's better to agree about its functions. > > Just to be practical, I am wondering if simply providing one more > parameter to the (perl) functions in order to specify the needed options > for the command to send is a solution good both for me and the users of > the perl wrapper. > > What do you think? > > Fabrizio > > > Andrew Hanushevsky wrote: > > 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 > >> >