Select folder

Small update to optionaly allow folders and files