1

I'm doing a tool to store clipboard texts in a list and is there a way in Python to check the data in the clipboard if it is a text or file across multiple platforms. Currently, I'm using pyperclip.copy() which gives me the clipboard data but if a file is copied it returns me the name of the file like sample file.py. Is there a way to check only if the clipboard is text?

Prabu_7
  • 21
  • 2

0 Answers0