Path: csiph.com!usenet.pasdenom.info!news.albasani.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.019 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'source.': 0.07; 'subject:skip:s 10': 0.07; 'target,': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.11; '(default': 0.16; 'finder': 0.16; 'fix': 0.17; 'cc:addr:python.org': 0.22; 'print': 0.22; 'header:User-Agent:1': 0.23; 'bytes': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'source': 0.25; 'code:': 0.26; 'header:In-Reply-To:1': 0.27; 'fixed': 0.29; 'skip:p 30': 0.29; 'doc': 0.31; 'repair': 0.31; 'file': 0.32; 'run': 0.32; 'mac': 0.33; 'subject: (': 0.35; 'board': 0.35; 'problem.': 0.35; 'test': 0.35; 'received:google.com': 0.35; 'disk': 0.36; 'shows': 0.36; 'called': 0.40; 'extended': 0.61; 'sharing': 0.69; 'compare:': 0.84; 'skip:: 20': 0.84; 'skip:: 40': 0.84 X-Received: by 10.49.37.39 with SMTP id v7mr828390qej.27.1365749598509; Thu, 11 Apr 2013 23:53:18 -0700 (PDT) Newsgroups: comp.lang.python Date: Thu, 11 Apr 2013 23:53:18 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=92.235.49.250; posting-account=fjrvzQoAAAAF4F9_gcVHWLVVScTZ6_Hn References: <51674ffc$0$29977$c3e8da3$5496439d@news.astraweb.com> <20130412011550.GA80724@cskk.homeip.net> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 92.235.49.250 MIME-Version: 1.0 Subject: Re: shutil.copyfile is incomplete (truncated) From: Rob Schneider To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Cc: python-list@python.org 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: , Message-ID: Lines: 25 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1365749607 news.xs4all.nl 2668 [2001:888:2000:d::a6]:59195 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:43426 > The file system is Mac OS Extended Journaled (default as out of the box). I ran a repair disk .. .while it found and fixed what it called "minor" problems, it did something. However, the repair did not fix the problem. I just ran the program again and the source is 47,970 bytes and target after copy if 45,056. Interestingly, the test I run just after the copy , i run a file compare: code: if showproperties: print "Filecompare :",filecmp.cmp(fn,loc+fname) print "Statinfo :"+fn+":\n", os.stat(fn) print "Statinfo :"+loc+fname+":\n", os.stat(loc+fname) results: Filecompare : True Statinfo :/var/folders/p_/n5lktj2n0r938_46jyqb52g40000gn/T/speakers.htm: posix.stat_result(st_mode=33188, st_ino=32205850, st_dev=16777218L, st_nlink=1, st_uid=501, st_gid=20, st_size=45056, st_atime=1365749178, st_mtime=1365749178, st_ctime=1365749178) Statinfo :/Users/rmschne/Documents/ScottishOilClub/SOC Board Doc Sharing Folder/Meetings/speakers.htm: posix.stat_result(st_mode=33188, st_ino=32144179, st_dev=16777218L, st_nlink=1, st_uid=501, st_gid=20, st_size=45056, st_atime=1365749178, st_mtime=1365749178, st_ctime=1365749178) 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. Sigh.