[Python-bugs-list] [ python-Bugs-546749 ] odd exception moving file to trash
noreply@sourceforge.net
noreply@sourceforge.net
Sun, 21 Apr 2002 06:11:32 -0700
Bugs item #546749, was opened at 2002-04-21 15:11
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=546749&group_id=5470
Category: Macintosh
Group: Platform-specific
Status: Open
Resolution: None
Priority: 5
Submitted By: Just van Rossum (jvr)
Assigned to: Jack Jansen (jackjansen)
Summary: odd exception moving file to trash
Initial Comment:
MacPython 2.2.1 on OSX.1.4, from IDE:
>>> import macfs, findertools
>>> f = open("a_file_to_trash", "w")
>>> f.close()
>>> fss = macfs.FSSpec("a_file_to_trash")
>>> vrefnum = fss.as_tuple()[0]
>>> vrefnum, pardir = macfs.FindFolder(vrefnum,
"trsh", 1)
>>> trashfolder = macfs.FSSpec((vrefnum, pardir,
"")).as_pathname()
>>> findertools.move("a_file_to_trash",
trashfolder)
Traceback (most recent call last):
File "<input>", line 1, in ?
File "Titaantje:Applications:Python
2.2.1:Mac:Lib:findertools.py", line 74, in move
return finder.move(src_fss, to=dst_fss)
File "Titaantje:Applications:Python
2.2.1:Mac:Lib:lib-
scriptpackages:Finder:Standard_Suite.py", line
293, in move
raise aetools.Error,
aetools.decodeerror(_arguments)
aetools.Error: (0, 'component result = no error',
None)
>>>
The file _does_ get moved to the trash, but that's
not visible in the Finder's Trash window, not even
after more items are dragged to the trash
manually.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=546749&group_id=5470