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.070 X-Spam-Evidence: '*H*': 0.86; '*S*': 0.01; 'postgresql': 0.07; 'subject:skip:s 10': 0.07; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'sync': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'header:In-Reply-To:1': 0.27; 'database,': 0.30; 'message-id:@mail.gmail.com': 0.30; '13,': 0.31; 'directory,': 0.31; 'existence': 0.31; 'subject: (': 0.35; 'point.': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'worry': 0.60; 'most': 0.60; 'details': 0.65; 'nobody': 0.68; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=xNtSfZ27313yXDkyBEUxfhizztr+fqTUoSlcu3MkrKE=; b=wFfvoul71UBuZavo5XZ2wSETtLnpkPKtjWwb25u2BL6jnHh0oPhZnVtGsFtpQiWjRh 4uqUa1m8y2KhT5UjD0zxt6gbxkWxS7F0/oUPEPfRzW2Ww3hZcYK+gklkFsYO10Z7VY9k GlziD3KAWoumE5Kg5MC3q0Cqc4Qo3aNV7LiZ/3rTCyLsNVxRhntT2cx3NanuZvu/CkX8 2tw/zm0xLSfX2jjUkhJGbYdqEHC/3Q9C05/KXoeBUPSkv6Ut0VqG+e9hOSa+Gc1eu+C0 uvnAvOkcK/Boj3A6SzfMaLUPYzP7b/ViQo5hZdlmY+4Pd0sjaz6kaD1W1CrCRWOvfyBi 2wsA== MIME-Version: 1.0 X-Received: by 10.52.231.231 with SMTP id tj7mr1040853vdc.111.1365822357134; Fri, 12 Apr 2013 20:05:57 -0700 (PDT) In-Reply-To: References: <5363f8ea-f2a6-4a08-a216-18c6666ba698@googlegroups.com> <51674ffc$0$29977$c3e8da3$5496439d@news.astraweb.com> Date: Sat, 13 Apr 2013 13:05:56 +1000 Subject: Re: shutil.copyfile is incomplete (truncated) From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 10 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1365822365 news.xs4all.nl 2564 [2001:888:2000:d::a6]:55855 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:43497 On Sat, Apr 13, 2013 at 12:33 PM, Nobody wrote: > But most of the time, there's no point. If you actually care about what > happens in the event of an unclean shutdown, you typically also need to > sync the directory, otherwise the file's contents will get sync'd but the > file's very existence might not be. Or just store your content in a PostgreSQL database, and let it worry about all the platform-specific details of how to fsync reliably. ChrisA