Expand description
File system utilities
Functions§
- ensure_
dir - Create directories recursively with proper error handling
- file_
extension - Get file extension as lowercase string
- file_
size - Get file size safely
- is_
binary_ file - Check if file is binary based on content
- is_
safe_ path - Check if a path is safe to access (no directory traversal)
- safe_
canonicalize - Safely canonicalize a path, handling cases where the path doesn’t exist