Re: file/folder naming

2011-02-18 Thread ecu_jon
On Feb 19, 1:38 am, Steven D'Aprano wrote: > On Fri, 18 Feb 2011 22:13:42 -0800, ecu_jon wrote: > > ok changed the try/except to just a file copy and got this: > > sourcepath is : > > [u'I:\\college\\spring11\\capstone-project\\facbac-009.py'] > > Note that it's a list. > > >     shutil.copy2(sour

Re: file/folder naming

2011-02-18 Thread Steven D'Aprano
On Fri, 18 Feb 2011 22:13:42 -0800, ecu_jon wrote: > ok changed the try/except to just a file copy and got this: > sourcepath is : > [u'I:\\college\\spring11\\capstone-project\\facbac-009.py'] Note that it's a list. > shutil.copy2(sourcepath, > os.path.join(destpath,os.p

Re: file/folder naming

2011-02-18 Thread Chris Rebert
On Fri, Feb 18, 2011 at 10:13 PM, ecu_jon wrote: > ok changed the try/except to just a file copy and got this: > sourcepath is : [u'I:\\college\\spring11\\capstone-project\ > \facbac-009.py'] > destpath is : V:\week3 > destpath is : V:\week3\facbac-009.py > Traceback (most recent call last): >  Fi

Re: file/folder naming

2011-02-18 Thread ecu_jon
ok changed the try/except to just a file copy and got this: sourcepath is : [u'I:\\college\\spring11\\capstone-project\ \facbac-009.py'] destpath is : V:\week3 destpath is : V:\week3\facbac-009.py Traceback (most recent call last): File "I:\college\spring11\capstone-project\folder.py", line 53, i

Re: file/folder naming

2011-02-18 Thread ecu_jon
On Feb 18, 11:59 pm, Chris Rebert wrote: > On Fri, Feb 18, 2011 at 8:29 PM, ecu_jon wrote: > > im trying to use wxpython to get a source file/files, then a > > destination folder to write them to. the file and folder picker works. > > the problem is, actually copying (actually shutil.copy2() ). i

Re: file/folder naming

2011-02-18 Thread Steven D'Aprano
On Fri, 18 Feb 2011 20:29:13 -0800, ecu_jon wrote: > im trying to use wxpython to get a source file/files, then a destination > folder to write them to. the file and folder picker works. the problem > is, actually copying (actually shutil.copy2() ). i get an except error, > as if the destination f

Re: file/folder naming

2011-02-18 Thread Chris Rebert
On Fri, Feb 18, 2011 at 8:29 PM, ecu_jon wrote: > im trying to use wxpython to get a source file/files, then a > destination folder to write them to. the file and folder picker works. > the problem is, actually copying (actually shutil.copy2() ). i get an > except error Please include the exact t