Re: [mp4h] Contents of directory in an array

Denis Barbier <[email protected]> Mon, 1 Sep 2003 22:29:59 +0200
Newsgroups gmane.comp.web.wml
Message-ID <[email protected]>
On Fri, Aug 15, 2003 at 02:28:01PM +0200, [email protected] wrote:
> 
> Hi!
> 
> The "directory-contents"-function should return a
> newline-seperated list. But why is it not possible
> to access the file with array-functions? I used this
> code:
> 
> ---
> <set-var-x name="files"><directory-contents .
> matching=".*\.data"></set-var-x>
> <get-var files>
> Number of files: <array-size files>
> ---

Hi,

sorry for the delay I was on vacation.
There seems indeed to be a bug here, you can try
 <set-var files="<directory-contents . matching=".*\.data">">
as a workaround until it is fixed.
Thanks for your report.

-- 
Denis Barbier
WML Maintainer
_____________________________________________________________________
Website META Language (WML)                         http://thewml.org
User Support Mailing List                        [email protected]
Automated List Manager                            [email protected]