This script implements an overly careful file writing function, which can be used to safely write files disk, without risking problems due to crashed scripts or full disks.
This function can be used to safely write a file to disk.
For writing the file, a swap file is used during the write phase. Only if writing the swap file fully succeeded without running into errors, the swap file is moved to its final location. This way, we cannot get broken data because of scripts that crash during writing or because of disks that are full.
Documentation generated on Fri, 26 Mar 2010 01:45:25 -0500 by phpDocumentor 1.4.1