Re: Create Remote folder with Timestamp
You need to use absolute paths.
$stamp = $(Get-Date -f "ddMMyyyy")
#Trying create newfolder
$session.CreateDirectory(("/" + $stamp))
# Upload files, collect results
$transferResult = $session.PutFiles($localPath, ("/" + $stamp + "/*"))