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
ZLayerdata dir’stmp/. Drop removes the directory and its contents. CallSelf::into_pathto keep the directory on disk past the guard’s lifetime. - Scratch
File - RAII-cleaned scratch file anchored under the
ZLayerdata dir’stmp/. Drop removes the file.