shutil.copyfile is incomplete (truncated)
Ned Deily
nad at acm.org
Fri Apr 12 03:53:29 EDT 2013
In article <6eeabeb2-e6dd-49fc-bd64-8de53965189b at googlegroups.com>,
Rob Schneider <rmschne at gmail.com> wrote:
> > The file system is Mac OS Extended Journaled (default as out of the box).
> It shows file size 45,056 on both source and target, which is the file size
> of the flawed target, and is not what Finder shows for source.
Perhaps the source file has an OS X resource fork or other extended
attribute metadata. shutil's copy functions won't handle those. One
way to see if that is the case is to examine the source file in a
terminal window with: ls -l@
$ ls -l@ test.jpg
-rw-r--r--@ 1 nad staff 40359 Jul 15 2009 test.jpg
com.apple.FinderInfo 32
com.apple.ResourceFork 899489
--
Ned Deily,
nad at acm.org
More information about the Python-list
mailing list