handles multiple directories inline arguments. doesnt handle other types of files