This commit is contained in:
Aleksey Kladov 2020-06-23 18:34:50 +02:00
parent 30748161f0
commit 21f751a0e5
5 changed files with 24 additions and 31 deletions

View file

@ -69,7 +69,7 @@ impl<'a> Project<'a> {
let mut paths = vec![];
for entry in parse_fixture(self.fixture) {
let path = tmp_dir.path().join(&entry.meta.path['/'.len_utf8()..]);
let path = tmp_dir.path().join(&entry.path['/'.len_utf8()..]);
fs::create_dir_all(path.parent().unwrap()).unwrap();
fs::write(path.as_path(), entry.text.as_bytes()).unwrap();
paths.push((path, entry.text));