[Pythonmac-SIG] macostools.copytree() problems...

jlegg@acs.wooster.edu jlegg@acs.wooster.edu
Fri, 15 Jun 2001 11:27:28 -0400 (EDT)


This was a good thought and had me excited for a moment! But... I forgot
to mention that although no files are copied, when I macostools.copytree()
the folder structure *is* created (as copytree() is supposed to) and it is
ready to actually copy the first file when the program dies (as revealed
from debugger information, which I just tried like you suggested). So in
other words, when my program runs, then crashes, I inspect the Novell
folders and every folder has been created from the first on the
backuplist. Only when an attempt to make a file copy (via
macostools.copy(), I guess, from within copytree()) does the Mac OS Error:
{-43, 'File not found'} occur.
 


> After looking at this for a long time I think I have a possible
solution.
> If NOVELL_SERVER:Home:User:Whatever exists, and let's say for sake of
argument 
> that there's nothing in there at the moment, then it's OK to copy
something 
> into NOVELL_SERVER:Home:User:Whatever:bla but it is NOT ok to copy
something 
> into NOVELL_SERVER:Home:User:Whatever:bla:bletch. Or, in other words:copytree 
> will create the destination but it will not create the whole path
> leading up to the destination.