How OSX Swift4 writes files to the clipboard

I want to do a macOS application, and now it"s mainly stuck on the clipboard.

would like to ask the gods, swift how to copy the file to the clipboard, and then right-click in the Finder to paste the file?

Note: copy the file, not the text, the text is too simple, the file really did not find a way to use it.

Mar.03,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b36fa3-2c073.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b36fa3-2c073.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?