Re: copying files into one

2006-05-14 Thread Gary Wessle
thanks, I was able 'using pdb' to fix the problem as per Edward's suggestion. -- http://mail.python.org/mailman/listinfo/python-list

Re: copying files into one

2006-05-14 Thread Ten
On Sunday 14 May 2006 05:09, Gary Wessle wrote: > Hi > > I am looping through a directory and appending all the files in one > huge file, the codes below should give the same end results but are > not, I don't understand why the first code is not doing it. > > thanks > Hi there - I think you might

Re: copying files into one

2006-05-13 Thread Edward Elliott
Gary Wessle wrote: > I am looping through a directory and appending all the files in one > huge file, the codes below should give the same end results but are > not, I don't understand why the first code is not doing it. another bit of friendly advice (for others as well): learn to use pdb before

Re: copying files into one

2006-05-13 Thread Edward Elliott
Gary Wessle wrote: > I am looping through a directory and appending all the files in one > huge file, the codes below should give the same end results but are > not, I don't understand why the first code is not doing it. > > combined = open(outputFile, 'wb') > for name in flist: > if os.path.

copying files into one

2006-05-13 Thread Gary Wessle
Hi I am looping through a directory and appending all the files in one huge file, the codes below should give the same end results but are not, I don't understand why the first code is not doing it. thanks combined = open(outputFile, 'wb') for name in flist: if os.path.isdir(file): continu