Hi Ali,
I have a function that does just that:
public static String[] retrouverListeRepertoire(String racine) throws
TechnicalException {
File repertoirePrincipal = new File(racine);
if (!repertoirePrincipal.exists()) {
log.info("le repertoire n'existe pas!");
throw new TechnicalException("Le repertoire " + racine + "
n'existe pas");
}
return repertoirePrincipal.list();
}
What you need to do is to have the root directory passed to the function as
a parameter, and the function will return you the list of folders, and files
directly under the root directory!
>Hi,
>I would like to reach a repertory and to list his contents.
>how can I make.
>Thank you.
>Nam.
_________________________________________________________________
Don't just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)