First version of Get files from a directory