ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: FTP - test if a directory exists
Date Tue, 25 Nov 2003 15:23:19 GMT
workaround:
- remote exec (<rexec>,<telnet>,<sshexec>): ls -al | grep mydirname >
file
- check the content of file


Jan


> -----Original Message-----
> From: gglefoncede gglefoncede [mailto:gglefoncede@hotmail.com]
> Sent: Tuesday, November 25, 2003 4:11 PM
> To: user@ant.apache.org
> Subject: RE: FTP - test if a directory exists
> 
> 
> I've done some test and when i make a directory that already 
> exist, the 
> precedent is eraze.
> And for my project I must not eraze a directory that already exist.
> 
> 
> >From: Jan.Materne@rzf.fin-nrw.de
> >Reply-To: "Ant Users List" <user@ant.apache.org>
> >To: user@ant.apache.org
> >Subject: RE: FTP - test if a directory exists
> >Date: Tue, 25 Nov 2003 15:15:13 +0100
> >
> >I donĀ“t know.
> >But you can let <ftp> create the directory. If it already exists that
> >will be silently ignored.
> >
> >
> >Jan
> >
> > > -----Original Message-----
> > > From: gglefoncede gglefoncede [mailto:gglefoncede@hotmail.com]
> > > Sent: Tuesday, November 25, 2003 3:02 PM
> > > To: user@ant.apache.org
> > > Subject: Re: FTP - test if a directory exists
> > >
> > >
> > > It's possible or not to test if a directory exists ? and how
> > > can i do that ?
> > >
> > > Thanks
> > > Greg
> > >
> > >
> > > >From: "gglefoncede gglefoncede" <gglefoncede@hotmail.com>
> > > >Reply-To: "Ant Users List" <user@ant.apache.org>
> > > >To: user@ant.apache.org
> > > >Subject: FTP - test if a directory exists
> > > >Date: Mon, 24 Nov 2003 15:02:46 +0100
> > > >
> > > >I'm using the FTP task to create a directory and upload
> > > files in this new
> > > >directory. Before creating this directory, i would like to
> > > test if this
> > > >directory doesn't already exist!
> > > >How can i do ?
> > > >
> > > >
> > > >Thanks
> > > >Greg
> > > >
> > > >_________________________________________________________________
> > > >MSN Search, le moteur de recherche qui pense comme vous !
> > > >http://search.msn.fr
> > > >
> > > >
> > > 
> >---------------------------------------------------------------------
> > > >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > > >For additional commands, e-mail: user-help@ant.apache.org
> > > >
> > >
> > > _________________________________________________________________
> > > Dialoguez en direct et gratuitement avec vos amis sur
> > > http://g.msn.fr/FR1001/866 MSN Messenger !
> > >
> > >
> > > 
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > > For additional commands, e-mail: user-help@ant.apache.org
> > >
> 
> _________________________________________________________________
> Hotmail : un compte GRATUIT qui vous suit partout et tout le temps ! 
> http://g.msn.fr/FR1000/9493
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message