Files¶
File module.
Reusable functions for working files.
- codestream.common.files.get_full_path(path)¶
Get the full path.
Returns the full path to a relative directory provided.
- codestream.common.files.read_yaml_file(file)¶
Read a YAML file.
Returns a file stream after ensuring it’s valid YAML.
- codestream.common.files.write_yaml_file(contents, file)¶
Write a YAML file.
Writes a file stream after ensuring it’s valid YAML.