MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / getEntities

Method getEntities

packages/core/file-system/index.ts:782–795  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 2

getEntitiesSyncMethod · 0.95
resolveFunction · 0.50

Tested by

no test coverage detected