Skip to main content

Module scratch

Module scratch 

Source
Expand description

RAII scratch directory and file types anchored at the ZLayer data dir’s tmp/ subdirectory. Constructed via [zlayer_paths::ZLayerDirs::scratch_dir] and [zlayer_paths::ZLayerDirs::scratch_file]. These wrap tempfile’s handles so call sites can name their return type without pulling in tempfile directly.

Structs§

Scratch
RAII-cleaned scratch directory anchored under the ZLayer data dir’s tmp/. Drop removes the directory and its contents. Call Self::into_path to keep the directory on disk past the guard’s lifetime.
ScratchFile
RAII-cleaned scratch file anchored under the ZLayer data dir’s tmp/. Drop removes the file.