Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'attribute': 0.07; 'source.': 0.07; 'subject:skip:s 10': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'target,': 0.09; '(default': 0.16; 'finder': 0.16; 'fork': 0.16; 'metadata.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'wrote:': 0.18; 'header:User-Agent:1': 0.23; 'source': 0.25; 'header:X-Complaints-To:1': 0.27; '2009': 0.29; 'file': 0.32; 'mac': 0.33; 'subject: (': 0.35; 'shows': 0.36; 'charset:us- ascii': 0.36; 'window': 0.38; 'handle': 0.38; 'to:addr:python- list': 0.38; 'resource': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'extended': 0.61; 'staff': 0.61; 'jul': 0.74; 'received:204': 0.75; 'article': 0.77; 'received:204.14': 0.84; 'examine': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Ned Deily Subject: Re: shutil.copyfile is incomplete (truncated) Date: Fri, 12 Apr 2013 00:53:29 -0700 References: <51674ffc$0$29977$c3e8da3$5496439d@news.astraweb.com> <20130412011550.GA80724@cskk.homeip.net> <6eeabeb2-e6dd-49fc-bd64-8de53965189b@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: 204.14.154.191 User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1365753219 news.xs4all.nl 2575 [2001:888:2000:d::a6]:51291 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:43431 In article <6eeabeb2-e6dd-49fc-bd64-8de53965189b@googlegroups.com>, Rob Schneider 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@acm.org