The current implementation follows the following pattern:
if a file in a watched directory is changed, it is updated. If it resides in a subdirectory, that subdirectory is treated as jar.
Sometimes it could be desired to organize files in subdirectories which shall not be treated as jars. sometimes you might want to have a separate watcher for a subdirectory, so the parent should skip them.
therefor I propose the addition of a new property called "felix.fileinstall.subdir.mode" with the values "jar", "recurse" and "skip". jar being default if unset.
This also would fix the problem described in
FELIX-5134 which was found to be: works as designed.