Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > file copy shutil

Reply
Thread Tools

file copy shutil

 
 
Joe
Guest
Posts: n/a
 
      02-09-2004
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.
 
Reply With Quote
 
 
 
 
Michael Hudson
Guest
Posts: n/a
 
      02-09-2004
(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)
 
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
Why is the shutil module called shutil? Fletcher Johnson Python 11 09-26-2011 04:18 AM
unicode shutil.copy() changes a file name during copy? dave Python 6 02-16-2011 09:53 PM
RE: Speed of shutil.copy vs os.system("copy src dest") in win32 Tim Golden Python 0 04-27-2006 07:41 AM
Speed of shutil.copy vs os.system("copy src dest") in win32 Russell Warren Python 1 04-27-2006 07:17 AM
shutil.copy time stamp errors on win XP BartlebyScrivener Python 2 04-15-2006 11:02 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57