$ 0 0 In the 'List directory' there's a sftp.Connect(); missing after right before var files = sftp.ListDirectory(remoteDirectory);