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

Method getFile

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

Source from the content-addressed store, hash-verified

748 }
749
750 public getFile(name: string): File {
751 const fileAccess = getFileAccess();
752 const path = fileAccess.joinPath(this.path, name);
753
754 const onError = function (error) {
755 throw error;
756 };
757
758 const fileInfo = fileAccess.getFile(path, onError);
759 if (!fileInfo) {
760 return undefined;
761 }
762
763 return createFile(fileInfo);
764 }
765
766 public getFolder(name: string): Folder {
767 const fileAccess = getFileAccess();

Callers

nothing calls this directly

Calls 4

getFileAccessFunction · 0.85
createFileFunction · 0.85
joinPathMethod · 0.65
getFileMethod · 0.65

Tested by

no test coverage detected