Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Problems with path

Thread Tools

Problems with path

Posts: n/a
Why this statement will generate errors

shutil.copy2("c:\hamido.sql", "c:\ali1.ali")
shutil.copy2('c:\hamido.sql', 'c:\ali1.ali')

Traceback (most recent call last):
File "<pyshell#20>", line 1, in ?
shutil.copy2("c:\hamido.sql", "c:\ali1.ali")
File "C:\PYTHON23\lib\", line 82, in copy2
copyfile(src, dst)
File "C:\PYTHON23\lib\", line 38, in copyfile
fdst = open(dst, 'wb')
IOError: [Errno 2] No such file or directory: 'c:\x07li1.ali'


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Server.MapPath() croaking with "failed to map path", but path is legal ASP .Net 0 05-12-2005 10:50 PM
how to get application path? Is that my method in getting path wrong? James Java 2 12-07-2004 11:59 AM
absolute path versus relative path in JSP Matt Java 3 07-08-2004 08:31 PM
Bizzare: Invalid path to Access mdb, path is good Keith-Earl ASP .Net 1 05-03-2004 03:25 PM
Tomcat returning 404 error when using additional path (/servlet/myServlet/extra/path/info) Mupota Muchelemba Java 1 02-04-2004 12:43 AM