<cfdirectory action="list" name="getFiles" directory="zip://d:\myzipfile.zip!content.zip" recurse="true">This fails with the following error:
file [d:\myzipfile.zip!content.zip] exists, but isn't a directory
So what to do?
Well this is the solution:
<cffile action="copy" source="zip://d:\myzipfile.zip!content.zip" destination="ram://content.zip">
<cfdirectory action="list" name="getFiles" directory="zip://ram://content.zip" recurse="true">
<cfdump eval=getFiles>
<cffile action="delete" file="ram://content.zip">So I combine the RAM and the ZIP resource in one directory address. You can only combine different resources in order to use them at the same time. I think that's really cool!
0 responses so far ↓
There are no comments yet...Kick things off by filling out the form below.
Leave a Comment