(nodes: FtpNode[])
| 65 | } |
| 66 | |
| 67 | private sort(nodes: FtpNode[]): FtpNode[] { |
| 68 | return nodes.sort((n1, n2) => { |
| 69 | if (n1.isDirectory && !n2.isDirectory) { |
| 70 | return -1; |
| 71 | } |
| 72 | |
| 73 | if (!n1.isDirectory && n2.isDirectory) { |
| 74 | return 1; |
| 75 | } |
| 76 | |
| 77 | return basename(n1.resource.fsPath).localeCompare(basename(n2.resource.fsPath)); |
| 78 | }); |
| 79 | } |
| 80 | |
| 81 | public getContent(resource: vscode.Uri): Thenable<string> { |
| 82 | return this.connect().then(client => { |
no outgoing calls
no test coverage detected