Module file

Module file 

Source
Expand description

Utility functions for file operations

Functions§

create_dir_if_not_exists
Create a directory if it doesn’t exist
exists
Check if a path exists and is a file
get_extension
Get the file extension from a path
get_parent
Get the parent directory of a path
get_stem
Get the file name without extension from a path
glob_files
Get all files matching a glob pattern
is_dir
Check if a path exists and is a directory
read_to_string
Read a file to string
write_string
Write a string to a file