[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:

Trunk/App1/countrycode/organization/app/module

Trunk/doc/countrycode/organization/app/module

Trunk/dist/jars

 

I would have to create :

-Trunk

-Trunk/App1

-Trunk/App1/countrycode

-Trunk/App1/countrycode/organization

 

...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

 

 

 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>

           

 

image001.jpg
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.