[Python-bugs-list] [ python-Bugs-585923 ] macfs.FSSpec fails for "new" files

noreply@sourceforge.net noreply@sourceforge.net
Mon, 05 Aug 2002 14:54:43 -0700


Bugs item #585923, was opened at 2002-07-24 15:35
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=585923&group_id=5470

Category: Macintosh
Group: Python 2.3
Status: Open
Resolution: None
Priority: 7
Submitted By: Just van Rossum (jvr)
Assigned to: Jack Jansen (jackjansen)
>Summary: macfs.FSSpec fails for "new" files

Initial Comment:
In the mach-o version of Python on MacOSX, the macfs.FSSpec() 
library function fails for files that don't yet exist.

The problem is caused by (internally) using an FSRef to construct 
the FSSpec: FSRefs can't hold references to non-existent files, 
whereas FSSpecs can.

----------------------------------------------------------------------

>Comment By: Jack Jansen (jackjansen)
Date: 2002-08-05 23:54

Message:
Logged In: YES 
user_id=45365

macostools.copy() has been fixed in rev. 1.16. mkalias()
still has the problem, though.

----------------------------------------------------------------------

Comment By: Jack Jansen (jackjansen)
Date: 2002-08-03 23:01

Message:
Logged In: YES 
user_id=45365

As the workaround is going to be both difficult to implement and incomplete I'm tempted to punt on this one. Difficult because we have to split the path in C, and we have to do /: substitutions on the last component; incomplete because we cannot cater for utf8/macroman differences and filenames > 32 characters.

If we punt on this we should make sure we phase out using fsspec's in the standard library in favor of the fsref calls.

Do you think this is an acceptable solution? How much work would it be?

----------------------------------------------------------------------

Comment By: Just van Rossum (jvr)
Date: 2002-07-29 23:56

Message:
Logged In: YES 
user_id=92689

This bug also cause macostools.copy() to fail, making the breakage 
larger than I thought :-(

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=585923&group_id=5470