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

Function desktop

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

Source from the content-addressed store, hash-verified

927
928 let _desktop: Folder;
929 export function desktop(): Folder {
930 _checkPlatform('desktop');
931 if (!_desktop) {
932 const existingFolderInfo = getExistingFolderInfo(NSSearchPathDirectory.DesktopDirectory);
933
934 if (existingFolderInfo) {
935 _desktop = existingFolderInfo.folder;
936 _desktop._path = existingFolderInfo.path;
937 _desktop._isKnown = true;
938 }
939 }
940
941 return _desktop;
942 }
943
944 let _downloads: Folder;
945 export function downloads(): Folder {

Callers

nothing calls this directly

Calls 2

_checkPlatformFunction · 0.85
getExistingFolderInfoFunction · 0.85

Tested by

no test coverage detected