()
| 526 | * if the file is an image using isImageFile() if needed. |
| 527 | */ |
| 528 | export function readClipboardFilePath(): string | null { |
| 529 | const platform = process.platform |
| 530 | |
| 531 | switch (platform) { |
| 532 | case 'darwin': |
| 533 | return readClipboardFilePathMacOS() |
| 534 | case 'win32': |
| 535 | return readClipboardFilePathWindows() |
| 536 | case 'linux': |
| 537 | return readClipboardFilePathLinux() |
| 538 | default: |
| 539 | return null |
| 540 | } |
| 541 | } |
| 542 | |
| 543 | /** |
| 544 | * Read image file path from clipboard when an image file has been copied. |
no test coverage detected