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

Function sharedPublic

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

Source from the content-addressed store, hash-verified

1007
1008 let _sharedPublic: Folder;
1009 export function sharedPublic(): Folder {
1010 _checkPlatform('sharedPublic');
1011 if (!_sharedPublic) {
1012 const existingFolderInfo = getExistingFolderInfo(NSSearchPathDirectory.SharedPublicDirectory);
1013
1014 if (existingFolderInfo) {
1015 _sharedPublic = existingFolderInfo.folder;
1016 _sharedPublic._path = existingFolderInfo.path;
1017 _sharedPublic._isKnown = true;
1018 }
1019 }
1020
1021 return _sharedPublic;
1022 }
1023
1024 function getExistingFolderInfo(pathDirectory: any /* NSSearchPathDirectory */): {
1025 folder: Folder;

Callers

nothing calls this directly

Calls 2

_checkPlatformFunction · 0.85
getExistingFolderInfoFunction · 0.85

Tested by

no test coverage detected