Pass a Directory Query to <cfzip>?

207 views Asked by At

I need to zip files from a directory, but not all the files in the directory. I determine the files that need to be zipped by running a query on the directory listing.

Currently, I'm looping over the query results to add each file to the archive individually, but this can take a while in a large directory.

Is there any way to do this outside of a loop? I couldn't find anything in the CF docs that would indicate that you can pass some sort of list to cfzip.

1

There are 1 answers

1
Dan Short On BEST ANSWER

Unfortunately, no. You can pass it an entire directory to zip up, but not a query of files.