mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
Changed findertools.move() to move() in movetotrash.
This commit is contained in:
parent
7aeb6ef941
commit
5bb6ff926b
1 changed files with 1 additions and 1 deletions
|
@ -681,7 +681,7 @@ def movetotrash(path):
|
|||
"""move the object to the trash"""
|
||||
fss = macfs.FSSpec(path)
|
||||
trashfolder = macfs.FSSpec(macfs.FindFolder(fss.as_tuple()[0], 'trsh', 0) + ("",)).as_pathname()
|
||||
findertools.move(path, trashfolder)
|
||||
move(path, trashfolder)
|
||||
|
||||
def emptytrash():
|
||||
"""empty the trash"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue