Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Copy files

Reply
Thread Tools

Copy files

 
 
ChengGong
Guest
Posts: n/a
 
      03-31-2006
How can I copy a file from one folder to another(subfolder) without
change and property. I work on zope.

 
Reply With Quote
 
 
 
 
v0id
Guest
Posts: n/a
 
      03-31-2006
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!"

 
Reply With Quote
 
 
 
Reply

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
Re: copy some files from IE temporary internet files Tim Golden Python 0 04-19-2010 12:29 PM
what is Deep Copy, shallow copy and bitwises copy.? saxenavaibhav17@gmail.com C++ 26 09-01-2006 09:37 PM
is dict.copy() a deep copy or a shallow copy Alex Python 2 09-05-2005 07:01 AM
using File.Copy to copy files to shared hosting site Steve Richter ASP .Net 4 04-18-2005 03:06 PM
Copy Files Tree W/O the Files Toolman Tim Computer Support 4 11-07-2004 02:42 PM



Advertisments