From: Joe W. <jo...@gm...> - 2010-03-24 00:53:06
|
Evgeny, > File module have more common functional and so only DBA have access. > In my module I automate searching files in eXist's libs folders > by names, not by path. > Example lib:get-info("commons-util-%latest%.jar") > This functional is like the JnlpServlet, but more flex. Thanks, I understand now. I just rebuilt to check this out and look at the function documentation, which is a helpful start. For others who haven't, here is an example: input: lib:get-lib-info('commons-util-%latest%.jar') output: <lib name="ws-commons-util-1.0.2.jar" size="34407" modified="2010-01-22T20:51:33-05:00"/> Some requests for the module's xqdocs: 1. Could you be a little more specific and descriptive about the allowed values (and allowed wildcards) for $name? 2. Can you specify the XML format of the return value (even providing an example)? 3. Can you confirm this is only for *.jar files, and add that it's only for EXIST_HOME and EXIST_HOME/lib? Thanks, Joe |