Javahl mkdir use
From: Gonzalez Diaz, Xoan <G2485_at_caixagalicia.es>
Date: 2007-11-12 16:31:06 CET
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:%email@example.com>
This is an archived mail posted to the Subversion Users mailing list.