MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / readClipboardFilePath

Function readClipboardFilePath

cli/src/utils/clipboard-image.ts:528–541  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

526 * if the file is an image using isImageFile() if needed.
527 */
528export 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.

Callers 3

createPasteHandlerFunction · 0.90
dispatchActionFunction · 0.90

Calls 3

Tested by

no test coverage detected