Or we could reuse the command itself. If target file is a File, copy the file. If it's a Directory, copy it too. Easier and no need to create a new command.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Or we could reuse the command itself. If target file is a File, copy the file. If it's a Directory, copy it too. Easier and no need to create a new command.