Allow directories as input files parameter