shutil.copyfile is incomplete (truncated)

Chris Angelico rosuav at gmail.com
Fri Apr 12 23:05:56 EDT 2013


On Sat, Apr 13, 2013 at 12:33 PM, Nobody <nobody at nowhere.com> 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



More information about the Python-list mailing list