It would be useful to be able to ask cf-serverd which files match a given pattern.
Currently there is no way to ask cf-serverd what files exist. At best I can request a recursive copy and afterwords I can look at the files that were delivered. Additionally, when doing a recursive copy, currently filtering is done on the client side. So first the client asks for all files, the server returns the complete list of files, and then the client filters that list of files locally. This results in undesired network overhead which could be avoided by allowing the server to perform the filtering on the clients behalf.
This can complicate some policies. For example as discussed in
CFE-2334 promising that a remote collection of files should be in place, and have specific permissions.
Perhaps a new function, for example:
remotefilesmatching(remote path, regular expression, depth, remote_host)