Expand description
File system utilities.
Functionsยง
- copy_
dir_ all - Recursively copy a directory tree from
srctodst. - ensure_
dir - Ensure
pathand all its parents exist (likemkdir -p). - find_
files - Recursively find all files under
dirwith the given extension (without the leading dot). - is_dir
- Return
trueifpathexists and is a directory. - is_file
- Return
trueifpathexists and is a regular file. - read_
bytes - Read raw bytes from a file.
- read_
to_ string - Read a file to a
String. - write_
atomic - Write
contentstopathatomically via a temporary sibling file.