()
| 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; |
nothing calls this directly
no test coverage detected