MCPcopy Create free account
hub / github.com/17cupsofcoffee/nova / read

Function read

src/fs.rs:15–19  ·  view source on GitHub ↗
(path: &str)

Source from the content-addressed store, hash-verified

13}
14
15pub fn read(path: &str) -> Vec<u8> {
16 let full_path = asset_path(path);
17
18 std::fs::read(full_path).unwrap()
19}
20
21pub fn read_to_string(path: &str) -> String {
22 let full_path = asset_path(path);

Callers 2

from_fileMethod · 0.85
from_fileMethod · 0.85

Calls 1

asset_pathFunction · 0.85

Tested by

no test coverage detected