Copy files

Discussion in 'Python' started by ChengGong, Mar 31, 2006.

  1. ChengGong

    ChengGong Guest

    How can I copy a file from one folder to another(subfolder) without
    change and property. I work on zope.
     
    ChengGong, Mar 31, 2006
    #1
    1. Advertising

  2. ChengGong

    v0id Guest

    I haven't tested this, but i maybe think it works?

    import shutil
    try:
    copy("your_file.txt", "your_subfolder")
    print "Done!"
    except:
    print "Failed!"
     
    v0id, Mar 31, 2006
    #2
    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. John Blair
    Replies:
    4
    Views:
    1,106
    John Saunders
    Jan 12, 2005
  2. Steve Richter
    Replies:
    4
    Views:
    5,534
    Steve Richter
    Apr 18, 2005
  3. Alex
    Replies:
    2
    Views:
    1,270
  4. Replies:
    26
    Views:
    2,157
    Roland Pibinger
    Sep 1, 2006
  5. Tim Golden
    Replies:
    0
    Views:
    697
    Tim Golden
    Apr 19, 2010
Loading...

Share This Page