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

Method getFolder

packages/core/file-system/index.ts:766–780  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

764 }
765
766 public getFolder(name: string): Folder {
767 const fileAccess = getFileAccess();
768 const path = fileAccess.joinPath(this.path, name);
769
770 const onError = function (error) {
771 throw error;
772 };
773
774 const folderInfo = fileAccess.getFolder(path, onError);
775 if (!folderInfo) {
776 return undefined;
777 }
778
779 return createFolder(folderInfo);
780 }
781
782 public getEntities(): Promise<Array<FileSystemEntity>> {
783 return new Promise((resolve, reject) => {

Callers

nothing calls this directly

Calls 4

getFileAccessFunction · 0.85
createFolderFunction · 0.85
joinPathMethod · 0.65
getFolderMethod · 0.65

Tested by

no test coverage detected