[Python-bugs-list] [ python-Bugs-585923 ] macfs.FSSpec and Carbon.File.FSSpec fail for "new" files
SourceForge.net
noreply@sourceforge.net
Sat, 08 Feb 2003 15:18:55 -0800
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: 4
Submitted By: Just van Rossum (jvr)
Assigned to: Jack Jansen (jackjansen)
>Summary: macfs.FSSpec and Carbon.File.FSSpec fail 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: 2003-02-09 00:18
Message:
Logged In: YES
user_id=45365
No, the problem still exists, also in Carbon.File, and probably is solvable. It has become less urgent, though, as FSSpecs are phased out in the core.
----------------------------------------------------------------------
Comment By: Neal Norwitz (nnorwitz)
Date: 2003-02-07 23:20
Message:
Logged In: YES
user_id=33168
Can this be closed since macfs has been removed?
----------------------------------------------------------------------
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