create directories, get files, sort files into correct directories.