RSS
DaniWeb Home
>
Forums
>
Software Development
>
Python
copy a file
Please support our
Python
advertiser:
Programming Forums
Thread Tools
Display Modes
Views:
3437
| Replies:
3
•
•
•
•
•
•
Join Date: May 2005
Posts: 215
Reputation:
Rep Power:
4
Solved Threads: 0
shanenin
Offline
Posting Whiz in Training
copy a file
#
1
Jul 17th, 2005
I have been reading through the "python library reference" with no luck finding the module needed to copy a file. Any help would be appreciated.
shanenin
View Public Profile
Send a private message to shanenin
Find all posts by shanenin
•
•
Join Date: May 2005
Posts: 215
Reputation:
Rep Power:
4
Solved Threads: 0
shanenin
Offline
Posting Whiz in Training
Re: copy a file
#
2
Jul 17th, 2005
the shutil module seems to be what I needed.
shutil.copy(file,destination)
shanenin
View Public Profile
Send a private message to shanenin
Find all posts by shanenin
•
•
Join Date: Oct 2004
Posts: 2,546
Reputation:
Rep Power:
11
Solved Threads: 178
vegaseat
Offline
DaniWeb's Hypocrite
Re: copy a file
#
3
Jul 17th, 2005
For file copy shutil.copy2( sourcefile, destinationfile)
is preferred, since it retains the last access time and last modification time of the file.
May 'the Google' be with you!
vegaseat
View Public Profile
Send a private message to vegaseat
Find all posts by vegaseat
•
•
Join Date: May 2005
Posts: 215
Reputation:
Rep Power:
4
Solved Threads: 0
shanenin
Offline
Posting Whiz in Training
Re: copy a file
#
4
Jul 17th, 2005
thank you for the suggestion :-)
shanenin
View Public Profile
Send a private message to shanenin
Find all posts by shanenin
Quick Reply to Thread
•
•
•
•
Only community members can participate in forum threads. You must
register
or log in to contribute.
Register
•
•
•
•
Currently Active Users Viewing This Thread: 1
(0 members and 1 guests)
•
•
•
•
Thread Tools
Display Modes
Show Printable Version
Email this Page
Switch to Linear Mode
Hybrid Mode
Switch to Threaded Mode
Related Features
•
•
•
•
Python Forum
Software Development Forum
Software Development Blog
Python Tutorials
python Code Snippets
spyce Code Snippets
Python Forum Highlights
Today's Posts
Python
Software Development
All Forums
Unanswered Threads
Python
Software Development
All Forums
Blog Tag Cloud
•
•
•
•
business
copy
copyright
development
fax
google
lawsuit
microsoft
programming
python
scan
software
All Recent Tags
Similar Threads
how to copy a file
(Python)
Copy file with a name change
(ASP)
Cannot copy file: Data error (cylcic redundancy check)
(Windows NT / 2000 / XP / 2003)
how to copy a file from one machine to another using beans?
(Java)
Cannot copy file: Data error (cylcic redundancy check)
(Windows NT / 2000 / XP / 2003)
Windows XP Pro install on new machine "could not copy file .."
(Windows NT / 2000 / XP / 2003)
Other Threads in the Python Forum
Previous Thread:
changing to root user
Next Thread:
problem with string
Forums
|
Blogs
|
Tutorials
|
Code Snippets
|
Whitepapers
|
RSS Feeds
|
Advertising
All times are GMT -4. The time now is
12:49 pm
.
Newsletter Archive
-
Sitemap
-
Privacy Statement
-
Acceptable Use Policy
-
Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC