| 32 | } |
| 33 | |
| 34 | export function makeNativeLabel(isDirectory: boolean) { |
| 35 | let managerName: string; |
| 36 | if (!isDirectory) { |
| 37 | managerName = "Default Application"; |
| 38 | } else if (PLATFORM === PlatformMacOS) { |
| 39 | managerName = "Finder"; |
| 40 | } else if (PLATFORM == PlatformWindows) { |
| 41 | managerName = "Explorer"; |
| 42 | } else { |
| 43 | managerName = "File Manager"; |
| 44 | } |
| 45 | |
| 46 | let fileAction: string; |
| 47 | if (isDirectory) { |
| 48 | fileAction = "Reveal"; |
| 49 | } else { |
| 50 | fileAction = "Open File"; |
| 51 | } |
| 52 | return `${fileAction} in ${managerName}`; |
| 53 | } |