Expand description
File system operations for Humanize.
This module provides safe file operations with path validation to prevent security issues like path traversal and symlink attacks.
Structs§
- Path
Validation Options - Options for path validation.
Enums§
- FsError
- Errors that can occur during file operations.
- Round
File Type - Round file types that have special handling in validators.
Functions§
- extract_
round_ number - Extract round number from a round filename.
- is_
allowlisted_ file - Check if a file path is allowlisted for reading during a loop.
- is_
any_ round_ file - Check if a path is any round file (summary, prompt, or todos).
- is_
in_ humanize_ loop_ dir - Check if a path is inside .humanize/rlcr/ or .humanize/pr-loop/.
- is_
protected_ state_ file - Check if a path is a protected state file that should be blocked from writing.
- is_
round_ file_ type - Check if a path is a specific round file type.
- is_
round_ specific_ file - Check if a path is a round-specific file that should be blocked from reading.
- validate_
json_ depth - Validate JSON depth to prevent DoS attacks.
- validate_
path - Validate a path for security.