Module io_utils

Source
Expand description

Various utilities in the area of I/O

Modules§

bash
div
lockable_file
Wrapper guards around fs2 crate. First move your file handle into a LockableFile via From/Into. Then call locking methods on that to get a guard with access to the file handle.
output_capture_log
Capturing an output file of running commands–both stdout and stderr, each line prepended with “O” or “E” respectively, writing those lines to a file and optionally other filehandles like a terminal. The OutputCaptureLog holds both the path, and the main filehandle in a mutex, and allows to read back the last part of the file, e.g. for when there was an error and the application wants to include that in an error message.
owning_lockable_file
Variant of lockable_file.rs that does not have lifetimes in its locks, but instead relies on Arc.
read_buf
shell
tempfile_utils
More composable/controllable utilities for handling temporary files?
zstd_file
ZSTD compression and transparent decompression for files