2010-04-07 01:52:24 -05:00
|
|
|
# Copyright 2010 Hardcoded Software (http://www.hardcoded.net)
|
|
|
|
|
|
|
|
# This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
|
|
# which should be included with this package. The terms are also available at
|
|
|
|
# http://www.hardcoded.net/licenses/bsd_license
|
|
|
|
|
2010-07-07 09:12:13 -05:00
|
|
|
import send2trash_osx
|
2010-04-06 11:04:32 -05:00
|
|
|
|
|
|
|
def send2trash(path):
|
2010-07-07 09:12:13 -05:00
|
|
|
if not isinstance(path, str):
|
|
|
|
path = str(path, 'utf-8')
|
|
|
|
send2trash_osx.send(path)
|