Problems with path

Discussion in 'Python' started by hamido, Aug 6, 2003.

  1. hamido

    hamido Guest

    Hi
    Why this statement will generate errors

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

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

    -------------------------------------------
    TQ
    hamido, Aug 6, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Keith-Earl
    Replies:
    1
    Views:
    1,968
    Peter O'Reilly
    May 3, 2004
  2. Replies:
    0
    Views:
    2,244
  3. Mupota Muchelemba
    Replies:
    1
    Views:
    906
    Tony Morris
    Feb 4, 2004
  4. Matt
    Replies:
    3
    Views:
    19,546
    Sudsy
    Jul 8, 2004
  5. James
    Replies:
    2
    Views:
    13,920
    Andrew Thompson
    Dec 7, 2004
Loading...

Share This Page