PDA

View Full Version : Powershell copy files



Lincoln
07-06-2016, 07:01 PM
Hi! When I'm coping files from my other directories in windows to a directory, do I need to put the "/" after the name of the directory?

Example:

If I'm copying file "awesome.txt" to directory "totally", I normally would do this:

cp awesome.txt totally/

But I also see that if I don't put the /:

cp awesome.txt totally

it does the same thing. Do I not need to put the extra sign, or is it there for a reason?

EDIT: the / verifies that it's a real directory. If I don't put that and misspell the directory, it will create a new one.