Allow folders as input file