[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Javahl mkdir use

From: Gonzalez Diaz, Xoan <G2485_at_caixagalicia.es>
Date: 2007-11-12 16:31:06 CET

Hi again!


I'm trying to integrate Subversion with the project management software of one of our clients.

One of the actions to implement is to create a template of directories inside the repository, with a predefined layout (to all new projects). This is done when a project begins.

So, I am using mkdir (SVNClient, javahl). If I try to create a given directory, with parent directories that don't exist, an exception is thrown. I guess this is normal behaviour of function.

But browsing the trunk I noticed that is being implemented the complementary behaviour: create automatically all parent directories.


Until 1.5 arrives I have to implement this behaviour by hand.


Given a list of paths, for example:





I would have to create :






...and so on


Is there another way more optimal than checking if a directory exists and create if not?

If there is not such way, how can I ask if a directory exists in the repository (especifying an url)?


Thanks a lot,





 Xoan González Díaz

 Área de Arquitectura EE. FF.


 E-mail: g2485 (at) caixagalicia.es <mailto:%20g2485@caixagalicia.es>
   xoan.gonzalez (at) tecnocom.es <mailto:xoan.gonzalez@tecnocom.es>



Received on Mon Nov 12 16:31:11 2007

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.