mirror of https://github.com/python/cpython.git
Changed findertools.move() to move() in movetotrash.
This commit is contained in:
parent
7aeb6ef941
commit
5bb6ff926b
|
@ -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…
Reference in New Issue