Package: ghc-atomic-write (0.2.0.7-bp156.3.4)
Atomar in eine Datei schreiben
Atomar in eine Datei auf POSIX-konformen Systemen schreiben und dabei Berechtigungen erhalten. Auf den meisten Unix-Systemen ist `mv` eine atomare Operation. Dadurch ist es einfach, atomar in eine Datei zu schreiben, indem man einfach die mv-Operation verwendet. Allerdings zerstört dies die Berechtigungen der Originaldatei. Diese Bibliothek macht Folgendes, um die Berechtigungen beim atomaren Schreiben in eine Datei zu erhalten: * Wenn eine Originaldatei existiert, werden deren Berechtigungen übernommen und auf die Temp- Datei angewendet, bevor die Datei mit `mv` an ihren Platz verschoben wird. * Wenn die Originaldatei nicht existiert, wird eine Datei mit Standard- Berechtigungen erstellt (basierend auf der aktuell aktiven umask). Auf diese Weise sind die Berechtigungen, wenn die Datei mit `mv` an ihren Platz verschoben wird, die der Originaldatei. Diese Bibliothek basiert auf ähnlichen Implementierungen in gängigen Bibliotheken in Ruby und Python: * <http://apidock.com/rails/File/atomic_write/class Ruby on Rails includes a similar method called atomic_write> * <https://github.com/chef/chef/blob/c4631816132fcfefaba3d123a1d0dfe8bc2866bb/lib/chef/file_content_management/deploy/mv_unix.rb#L23:L71 Chef includes atomic update functionality> * <https://github.com/sashka/atomicfile There is a python library for atomically updating a file> Um `atomic-write` zu verwenden, importieren Sie das Modul, das dem Typ entspricht, den Sie atomar schreiben möchten, z. B. um ein (strict) ByteString atomar zu schreiben: > import System.AtomicWrite.Writer.ByteString Dann können Sie die Funktion atomicWriteFile verwenden, die einen `FilePath` und einen `ByteString` akzeptiert, z. B.: > atomicWriteFile myFilePath myByteString.
Package information
- Homepage
- [https://hackage.haskell.org/package/atomic-write]
- License
- MIT
- Downstream-Paketbetreuer
- Unbekannt: in der indizierten Quelle nicht gemeldet
- Quellpaket
- [ghc-atomic-write]
- Software project
- [ghc-atomic-write]
Versions and downloads for ghc-atomic-write
| Version / release | Architecture / repository | Package size | Installed size | Files | Publisher repository artifact |
|---|---|---|---|---|---|
| 0.2.0.7-bp156.3.4leap-15.6 / oss | aarch64openSUSE Leap 15.6 · OSS · multi-architecture | 25 KiB | 137 KiB | list of files | ghc-atomic-write-0.2.0.7-bp156.3.4.aarch64.rpm |
| 0.2.0.7-bp156.3.4leap-15.6 / oss | ppc64leopenSUSE Leap 15.6 · OSS · multi-architecture | 27 KiB | 136 KiB | list of files | ghc-atomic-write-0.2.0.7-bp156.3.4.ppc64le.rpm |
| 0.2.0.7-bp156.3.4leap-15.6 / oss | s390xopenSUSE Leap 15.6 · OSS · multi-architecture | 28 KiB | 124 KiB | list of files | ghc-atomic-write-0.2.0.7-bp156.3.4.s390x.rpm |
| 0.2.0.7-bp156.3.4leap-15.6 / oss | x86_64openSUSE Leap 15.6 · OSS · multi-architecture | 23 KiB | 76 KiB | list of files | ghc-atomic-write-0.2.0.7-bp156.3.4.x86_64.rpm |
About these downloads
Jede Zeile ist Paketindex-Metadaten für eine Version, Architektur, Suite und ein Repository. Namen, URLs und Größen stammen aus der Quelle; ein Link ist ein veränderbarer Abrufort, kein Weitergabanspruch von OpenFactory.
Other packages built from ghc-atomic-write
- ghc-atomic-write-devel
Haskell atomic-write library development files
Dependencies and recommendations for ghc-atomic-write
View 27 package relationships
dep: libHSarray-0.5.4.0-ghc8.10.7.so()(64bit)
Package not available
dep: libHSbase-4.14.3.0-ghc8.10.7.so()(64bit)
Package not available
dep: libHSbinary-0.8.8.0-ghc8.10.7.so()(64bit)
Package not available
dep: libHSbytestring-0.10.12.0-ghc8.10.7.so()(64bit)
Package not available
dep: libHScontainers-0.6.5.1-ghc8.10.7.so()(64bit)
Package not available
dep: libHSdeepseq-1.4.4.0-ghc8.10.7.so()(64bit)
Package not available
dep: libHSdirectory-1.3.6.0-ghc8.10.7.so()(64bit)
Package not available
dep: libHSexceptions-0.10.4-ghc8.10.7.so()(64bit)
Package not available
dep: libHSfilepath-1.4.2.1-ghc8.10.7.so()(64bit)
Package not available
dep: libHSghc-boot-th-8.10.7-ghc8.10.7.so()(64bit)
Package not available
dep: libHSghc-prim-0.6.1-ghc8.10.7.so()(64bit)
Package not available
dep: libHSinteger-gmp-1.0.3.0-ghc8.10.7.so()(64bit)
Package not available
dep: libHSmtl-2.2.2-ghc8.10.7.so()(64bit)
Package not available
dep: libHSpretty-1.1.3.6-ghc8.10.7.so()(64bit)
Package not available
dep: libHSrandom-1.2.1.1-9f2WqozEL1a6Li1yjXx21b-ghc8.10.7.so()(64bit)
Package not available
dep: libHSsplitmix-0.1.0.5-I0Qd5PkV8DI78gTOdjTC91-ghc8.10.7.so()(64bit)
Package not available
dep: libHSstm-2.5.0.1-ghc8.10.7.so()(64bit)
Package not available
dep: libHStemplate-haskell-2.16.0.0-ghc8.10.7.so()(64bit)
Package not available
dep: libHStemporary-1.3-4cpYMV4eGNz6ErDR69MJa9-ghc8.10.7.so()(64bit)
Package not available
dep: libHStext-1.2.4.1-ghc8.10.7.so()(64bit)
Package not available
dep: libHStime-1.9.3-ghc8.10.7.so()(64bit)
Package not available
dep: libHStransformers-0.5.6.2-ghc8.10.7.so()(64bit)
Package not available
dep: libHSunix-2.7.2.2-ghc8.10.7.so()(64bit)
Package not available
dep: libHSunix-compat-0.7.1-3iEINXgGkHd2xA1QIYkwdx-ghc8.10.7.so()(64bit)
Package not available
dep: libgmp.so.10()(64bit)
Package not available
dep: libm.so.6()(64bit)
Package not available
dep: libc.so.6(GLIBC_2.17)(64bit)
Package not available
Paketdateipfade (4)
Paths come from the repository package-file index for the observed builds. They describe archive/package associations, not every file that will exist on a running system after maintainer scripts, alternatives, generated state, diversions, or installation choices.
- /usr/lib64/ghc-8.10.7/atomic-write-0.2.0.7
- /usr/lib64/ghc-8.10.7/atomic-write-0.2.0.7/libHSatomic-write-0.2.0.7-9EMvEbZi0pM4P8TfJEMKWj-ghc8.10.7.so
- /usr/share/licenses/ghc-atomic-write
- /usr/share/licenses/ghc-atomic-write/LICENSE
Field source: openSUSE Leap 15.6 OSS
