Don't just differ between `directory` and `file`, when trying to copy files to the output folder, but all other file types from [dirent](https://nodejs.org/api/fs.html#fs_class_fs_dirent) as well.
Don't just differ between
directoryandfile, when trying to copy files to the output folder, but all other file types from dirent as well.