copies and removes files from source directory to destination directory based on file type