send2trash/send2trash/plat_osx.py

7 lines
153 B
Python
Raw Normal View History

import _send2trash_osx
def send2trash(path):
if not isinstance(path, unicode):
path = unicode(path, 'utf-8')
_send2trash_osx.send(path)