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

Function getExistingFolderInfo

packages/core/file-system/index.ts:1024–1040  ·  view source on GitHub ↗
(pathDirectory: any /* NSSearchPathDirectory */)

Source from the content-addressed store, hash-verified

1022 }
1023
1024 function getExistingFolderInfo(pathDirectory: any /* NSSearchPathDirectory */): {
1025 folder: Folder;
1026 path: string;
1027 } {
1028 const fileAccess = <any>getFileAccess();
1029 const folderPath = fileAccess.getKnownPath(pathDirectory);
1030 const folderInfo = fileAccess.getExistingFolder(folderPath);
1031
1032 if (folderInfo) {
1033 return {
1034 folder: createFolder(folderInfo),
1035 path: folderPath,
1036 };
1037 }
1038
1039 return undefined;
1040 }
1041 }
1042}
1043

Callers 8

libraryFunction · 0.85
developerFunction · 0.85
desktopFunction · 0.85
downloadsFunction · 0.85
moviesFunction · 0.85
musicFunction · 0.85
picturesFunction · 0.85
sharedPublicFunction · 0.85

Calls 4

getFileAccessFunction · 0.85
createFolderFunction · 0.85
getKnownPathMethod · 0.80
getExistingFolderMethod · 0.80

Tested by

no test coverage detected