MCPcopy Create free account
hub / github.com/assert-rs/assert_fs / write_str

Function write_str

src/fixture/tools.rs:317–320  ·  view source on GitHub ↗
(path: &path::Path, data: &str)

Source from the content-addressed store, hash-verified

315}
316
317fn write_str(path: &path::Path, data: &str) -> Result<(), FixtureError> {
318 ensure_parent_dir(path)?;
319 write_binary(path, data.as_bytes()).chain(FixtureError::new(FixtureKind::WriteFile))
320}
321
322fn write_file(path: &path::Path, data: &path::Path) -> Result<(), FixtureError> {
323 ensure_parent_dir(path)?;

Callers 1

write_strMethod · 0.85

Calls 3

ensure_parent_dirFunction · 0.85
write_binaryFunction · 0.85
chainMethod · 0.80

Tested by

no test coverage detected