Checks if a directory exists on the SFTP server.
function DirExists(RemoteDir: String): Boolean;
RemoteDir specifies the name of the remote directory to check for existence.