()
| 780 | } |
| 781 | |
| 782 | public getEntities(): Promise<Array<FileSystemEntity>> { |
| 783 | return new Promise((resolve, reject) => { |
| 784 | let hasError = false; |
| 785 | const localError = function (error) { |
| 786 | hasError = true; |
| 787 | reject(error); |
| 788 | }; |
| 789 | |
| 790 | const entities = this.getEntitiesSync(localError); |
| 791 | if (!hasError) { |
| 792 | resolve(entities); |
| 793 | } |
| 794 | }); |
| 795 | } |
| 796 | |
| 797 | public getEntitiesSync(onError?: (error: any) => any): Array<FileSystemEntity> { |
| 798 | const fileInfos = getFileAccess().getEntities(this.path, onError); |
nothing calls this directly
no test coverage detected