implementation addition of files from a directory