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

Method fromPath

packages/core/file-system/index.ts:699–710  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

697
698export class Folder extends FileSystemEntity {
699 public static fromPath(path: string): Folder {
700 const onError = function (error) {
701 throw error;
702 };
703
704 const folderInfo = getFileAccess().getFolder(path, onError);
705 if (!folderInfo) {
706 return undefined;
707 }
708
709 return createFolder(folderInfo);
710 }
711
712 public static exists(path: string): boolean {
713 return getFileAccess().folderExists(path);

Callers

nothing calls this directly

Calls 3

getFileAccessFunction · 0.85
createFolderFunction · 0.85
getFolderMethod · 0.65

Tested by

no test coverage detected