Name : perl-File-AtomicWrite
| |
Version : 1.210.0
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp156.1.1
| Date : 2024-07-21 22:13:53
|
Group : Unspecified
| Source RPM : perl-File-AtomicWrite-1.210.0-lp156.1.1.src.rpm
|
Size : 0.03 MB
| |
Packager : https://www_suse_com/
| |
Summary : writes files atomically via rename()
|
Description :
This module offers atomic file writes via a temporary file created in the same directory (and therefore probably the same partition) as the specified *file*. After data has been written to the temporary file, the \'rename\' system call is used to replace the target *file*. The module optionally supports various sanity checks (*min_size*, *CHECKSUM*) that help ensure the data is written without errors.
Should anything go awry, the module will \'die\' or \'croak\'. All calls should be wrapped in \'eval\' blocks or better yet Try::Tiny.
eval { File::AtomicWrite->write_file(...) }; if ($AATT) { die \"uh oh: $AATT\" }
The module attempts to \'flush\' and \'sync\' the temporary filehandle prior to the \'rename\' call. This may cause portability problems. If so, please let the author know. Also notify the author if false positives from the \'close\' call are observed.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl/15.6/noarch |