Enhance closure filter on directory copy

Description

I'm working on a project where I'm copying a directory with a large number of files (around 40,000) but I'm skipping the vast majority of them in my filter closure. However, the file copy still takes a very long time because that closure runs for every file. Is there a way to enhance the closure such as if it returns "false" for a sub folder, the recursive contents of that folder is simply skipped? 99% of the files I'm skipping are in subdirectories and it would be idea for performance to not even recurse into those directories if my closure has already returned false for the folder itself. From what I can tell, the code in Lucee copies the path if it matches the filter OR if it's a directory.

Activity

Show:
Duplicate

Details

Assignee

Reporter

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Priority

Created 6 October 2017 at 18:44
Updated 28 January 2025 at 10:27
Resolved 28 January 2025 at 10:27