file copy shutil

Discussion in 'Python' started by Joe, Feb 9, 2004.

  1. Joe

    Joe Guest

    I see this on python.org

    "Caveat: On MacOS, the resource fork and other metadata are not used.
    For file copies, this means that resources will be lost and file type
    and creator codes will not be correct."

    Is there a way to copy files correctly on BOTH Mac and Windows? I am
    trying to write a utility that will work on both platforms identically
    since I am in a mixed environment network. Thanks.
    Joe, Feb 9, 2004
    #1
    1. Advertising

  2. (Joe) writes:

    > I see this on python.org
    >
    > "Caveat: On MacOS, the resource fork and other metadata are not used.
    > For file copies, this means that resources will be lost and file type
    > and creator codes will not be correct."
    >
    > Is there a way to copy files correctly on BOTH Mac and Windows? I am
    > trying to write a utility that will work on both platforms identically
    > since I am in a mixed environment network. Thanks.


    Look at distutils.file_util (or someting like that...)

    Cheers,
    mwh

    --
    Usenet is like a herd of performing elephants with diarrhea --
    massive, difficult to redirect, awe-inspiring, entertaining, and
    a source of mind-boggling amounts of excrement when you least
    expect it. -- spaf (1992)
    Michael Hudson, Feb 9, 2004
    #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. BartlebyScrivener

    shutil.copy time stamp errors on win XP

    BartlebyScrivener, Apr 15, 2006, in forum: Python
    Replies:
    2
    Views:
    393
    BartlebyScrivener
    Apr 16, 2006
  2. Russell Warren
    Replies:
    1
    Views:
    778
    Tim Roberts
    Apr 27, 2006
  3. Tim Golden
    Replies:
    0
    Views:
    600
    Tim Golden
    Apr 27, 2006
  4. dave
    Replies:
    6
    Views:
    1,024
  5. Fletcher Johnson

    Why is the shutil module called shutil?

    Fletcher Johnson, Sep 24, 2011, in forum: Python
    Replies:
    11
    Views:
    868
    alex23
    Sep 26, 2011
Loading...

Share This Page