Creates a new DataModel object to list all the files starting from basedir
basedir
a directory
a new DataModel