(pathDirectory: any /* NSSearchPathDirectory */)
| 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 |
no test coverage detected