Forget what i said, didn't read the previous if. :) sorry

On Thu, 2004-08-05 at 16:40, Bruno Tavares wrote:
> On Thu, 2004-08-05 at 16:30, Hans Meine wrote:
> > On Thursday 05 August 2004 17:28, Mick wrote:
> > >     if os.path.isdir(newdir):
> > >         pass
> > >     elif os.path.isfile(newdir):
> > >         raise OSError("a file with the same name as the desired " \
> > nitpicking: maybe the latter should be os.path.exists, so fifos or other stuff 
> > are also catched... ;-)
> 
> os.path.exists will not work, because if it is already a dir there
> should be no exception raise.
> But you can change it to : 
> 
> elif (os.path.exists(newdir) and ( not os.path.isdir(newdir)))
> 
> So , if it exists and is not a dir, then a exception is raised.
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by OSTG. Have you noticed the changes on
> Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
> one more big change to announce. We are now OSTG- Open Source Technology
> Group. Come see the changes on the new OSTG site. www.ostg.com
> _______________________________________________
> Freevo-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/freevo-devel



-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to