Functionsยง
- atomic_
write - Atomically replace
pathwithcontents. - read_
file_ capped - Read at most
max_bytesfrompath, rejecting files larger than the cap. - read_
to_ string_ capped - UTF-8 decode a capped file read. Uses [
MAX_FILE_BYTES] whenmax_bytesis not needed elsewhere. - replace_
file - Replace
pathwithtmp_path(tmp is consumed). Works on Windows whererenamecannot overwrite an existing destination.