Module dirext

Source
Expand description

Extensions for cap_std::fs::Dir. Key features here include:

  • “optional” variants that return Result<Option<T>> for nonexistent paths, when it is a normal case that paths may not exist.
  • A helper to update timestamps
  • “atomic write” APIs that create a new file, then rename over the existing one to avoid half-written updates to files.

Structs§

WalkComponent
A directory entry encountered when using the walk function.
WalkConfiguration
Options controlling recursive traversal with walk.

Traits§

CapStdExtDirExt
Extension trait for cap_std::fs::Dir.

Type Aliases§

WalkResult
The return value of a [walk] callback.