are there internal functions for these ?

Discussion in 'Python' started by black, Oct 12, 2005.

  1. black

    black Guest

    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 ?

    black, Oct 12, 2005
    1. Advertisements

  2. black

    jepler Guest

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


    Version: GnuPG v1.4.1 (GNU/Linux)

    -----END PGP SIGNATURE-----
    jepler, Oct 12, 2005
    1. Advertisements

  3. black

    Robert Kern Guest

    This is the second hit for the google search: copy

    Robert Kern

    "In the fields of hell where the grass grows high
    Are the graves of dreams allowed to die."
    -- Richard Harter
    Robert Kern, Oct 12, 2005
  4. black

    Kent Johnson Guest

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

    Kent Johnson, Oct 12, 2005
  5. No, I suspect people would have to be a trained
    psychologist to figure you out.

    Steven D'Aprano, Oct 12, 2005

    It's the very first link.
    I'm afraid so.
    Grant Edwards, Oct 12, 2005
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.