开发者

Pass a Directory Query to <cfzip>?

开发者 https://www.devze.com 2023-02-27 21:15 出处:网络
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.

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 archi开发者_如何学Cve 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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消