Copy Exist Directory
Hi!
Please help me.
My problem is: I need use Powershell and winscp, and copy directory and files in this directory. Ok. I can do it.
But if i copy 1 time to destination folder, all files updating. It is not good.
Example:
I copy
Server1\home\user\ (in this folder has many folders (folders name 08102014;09102014;10102014)
Server2 D:\CO\08102014;09102014;10102014\
How i can check exist folder on destination server or not exist? If exist do not getfile(copy) if not exist then run getfiles.
I know
if ($session.FileExists($remotePath))
but what need next?) I dont now. Sorry i have bad English.
Please help me.
My problem is: I need use Powershell and winscp, and copy directory and files in this directory. Ok. I can do it.
But if i copy 1 time to destination folder, all files updating. It is not good.
Example:
I copy
Server1\home\user\ (in this folder has many folders (folders name 08102014;09102014;10102014)
Server2 D:\CO\08102014;09102014;10102014\
How i can check exist folder on destination server or not exist? If exist do not getfile(copy) if not exist then run getfiles.
I know
if ($session.FileExists($remotePath))
but what need next?) I dont now. Sorry i have bad English.