Today's little hiccup: I'm extracting email attachments to a directory and I need to read the list of files that have been extracted. Here's where the Foundation FileUtils Find operation comes in.
The documentation states:
"...
Regular Expression
A string value that represents the regular expression used to match the file and directory names. The default is * which matches any file and directory name. (See Regular expressions syntax.)
..."
Using the default value of "*" produces this result:
ALC-FUT-001-007: Syntax error in the regular expression *.
at com.adobe.livecycle.fileutils.FileUtilsService.list(FileUtilsService.java:809)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke(DefaultPOJOInvokerImpl.java:118)
...
(and there's about another 92 lines more of this rubbish)
And the stupid thing is that the Regular Expression field is, in fact, defaulted to "*". I think they meant: ".*"
Lads, I think you need to brush up on your regex syntax.
"...
Regular Expression
A string value that represents the regular expression used to match the file and directory names. The default is * which matches any file and directory name. (See Regular expressions syntax.)
..."
Using the default value of "*" produces this result:
ALC-FUT-001-007: Syntax error in the regular expression *.
at com.adobe.livecycle.fileutils.FileUtilsService.list(FileUtilsService.java:809)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke(DefaultPOJOInvokerImpl.java:118)
...
(and there's about another 92 lines more of this rubbish)
And the stupid thing is that the Regular Expression field is, in fact, defaulted to "*". I think they meant: ".*"
Lads, I think you need to brush up on your regex syntax.
Comments
Post a Comment