Closed ahuoguo closed 2 weeks ago
If I don't have the output directory, running cargo run -- vis-script --script tests/scripts/fault_injection/dfinity_sync.mm will give error
output
cargo run -- vis-script --script tests/scripts/fault_injection/dfinity_sync.mm
Error: Could not open "<OMITTED>/whamm-fork/output/vis.svg" for writing : No such file or directory
We can create the parent directory if it doesn't exist and reduce the assumption for user by putting std::fs::create_dir_all somewhere
std::fs::create_dir_all
If I don't have the
output
directory, runningcargo run -- vis-script --script tests/scripts/fault_injection/dfinity_sync.mm
will give errorWe can create the parent directory if it doesn't exist and reduce the assumption for user by putting
std::fs::create_dir_all
somewhere