are there internal functions for these ?

B

black

hi all~

i wrote some functions for copying and moving files caz' i didnt find
concret functions within the doc. but i think these operations are
simple and important so there may be some internal ones i didnt know.
anyone could figure me out ?

tks~
 
J

jepler

there's 'os.rename' for moving (single) files, and several functions in
'shutil' for moving and copying trees of files.

Jeff

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDTG6EJd01MZaTXX0RAvedAJ97gFhW1/CPaWnVbtgoBZyZ2vi4hwCfa1hp
9GuyNsDSTlXqzD6jMcNUw60=
=CLIp
-----END PGP SIGNATURE-----
 
R

Robert Kern

black said:
hi all~

i wrote some functions for copying and moving files caz' i didnt find
concret functions within the doc. but i think these operations are
simple and important so there may be some internal ones i didnt know.
anyone could figure me out ?

http://docs.python.org/lib/module-shutil.html

This is the second hit for the google search:

site:docs.python.org copy

--
Robert Kern
(e-mail address removed)

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
 
K

Kent Johnson

black said:
hi all~

i wrote some functions for copying and moving files caz' i didnt find
concret functions within the doc. but i think these operations are
simple and important so there may be some internal ones i didnt know.
anyone could figure me out ?

See the os, os.path and shutil modules for many file operations including copy and move.

Kent
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top