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.

Status

Assignee

Unassigned

Reporter

Brad Wood

Labels

None

Priority

New