add pattern to match file.name in case of dir yet containing files