get directory file names and join some files togeter