title: PowerShell Connect to FTP server and get files
body: <pre><code>$ftpServer = "ftp.example.com"
  $username ="validUser"
  $password ="myPassword"
  $localToFTPPath = "C:\ToFTP"
  $localFromFTPPath = "C:\FromFTP"
  $remotePickupDir = "/Inbox"
  $remoteDropDir = "/Outbox"
  $SSLMode = [AlexPilotti.FTPS.Client.ESSLSupportMode]::ClearText
  $ftp = new-object "AlexPilotti.FTPS.Client.FTPSClient"
  $cred = New-Object System.Net.NetworkCredential($username,$password)
  $ftp.Connect($ftpServer,$cred,$SSLMode) #Connect
  $ftp.SetCurrentDirectory($remotePickupDir)
  $ftp.GetFiles($localFromFTPPath, $false) #Get Files
  </code></pre>
  
  <p>This is the script I got for importing files from an FTP server.<br>
  However I am not sure what is the <code>remotePickupDir</code> and is this script correct?   </p>