[Pythonmac-SIG] macostools.copy()

Steven D. Majewski sdm7g@virginia.edu
Mon, 8 Mar 1999 19:49:40 -0500 (EST)


On Mon, 8 Mar 1999, Joseph J. Strout wrote:

|At 3:43 PM -0800 03/08/99, Chris Walker wrote:
|
|>More questions...  I get the following exception when using macostools.copy()
|>
|>Traceback (innermost last):
|>  File "Macintosh HD:Documents:Devel:Python:test.py", line 52, in visit
|>    macostools.copy(fullpath, destFile)
|>  File "::Mac:Lib:macostools.py", line 77, in copy
|>    dstfss = macfs.FSSpec(dst)
|>ValueError: (-50, 'error in user parameter list')
|>
|>Does anyone know what might be causing this?
|
|It'd be easier to guess if you showed us what destFile is.  Most likely
|it's not a valid pathname.
|

Yeah -- the -50 is a Mac OS return code just being propagated by Python.
I can feed macostools.copy nonsence and manage to get a -35 'no such 
volume' or a C library error 2 - 'no such file or directory', and with:


macostools.copy( 'FUCK YOU! you rotten stinking son-of-bitch!', 'xxx' )

I even managed to make it squeak:

    (-37, 'there may be no bad names in the final system!')

but I doubt we can guess what causes a -50 unless you tell us. 

( Enjoy that last error message while you can: it may go away in a
 future release when the toolbox fully supports the new filesystem. ;-)

---|  Steven D. Majewski   (804-982-0831)  <sdm7g@Virginia.EDU>  |---
---|  Department of Molecular Physiology and Biological Physics  |---
---|  University of Virginia             Health Sciences Center  |---
---|  P.O. Box 10011            Charlottesville, VA  22906-0011  |---

    Caldera Open Linux: "Powerful and easy to use!" -- Microsoft(*)
     (*) <http://www.pathfinder.com/fortune/1999/03/01/mic.html>