Hi Ron, Which version are you using? In the recent releases, the Router only supports URI Templates as defined in this RFC: http://bitworking.org/projects/URI-Templates/
So, we don't support Java Regex anymore, but you can use URI variables instead, see: http://www.restlet.org/tutorial#part11 In your case, you need to remove the trailing "$" character. In addition, could you precise your actual requirements? If you want to display a list of files for directories, you could simply enable the "Directory.listingAllowed" property. Also, you can customize the directory representation returned by overriding the Directory.getDirectoryVariants(..) method. Best regards, Jerome > -----Message d'origine----- > De : Ron Lancaster [mailto:[EMAIL PROTECTED] > Envoyé : vendredi 5 janvier 2007 00:04 > À : [email protected] > Objet : Attach Restlet for File and Directory > > I'd like to attach a restlet to handle files and a different restlet > to handle directories. The differentiator between the two is that > directories would end with a trailing slash. I tried > something like "/ > filesystem/" for files and "/filesystem/(path)/$" for directories, > but this does not give me consistent results. > > Thank you in advance for your help! > > -ron

