fix zokrates_js build script, filter .zok files
This commit is contained in:
parent
6f8220e6a9
commit
f4789d4b04
1 changed files with 7 additions and 1 deletions
|
@ -14,7 +14,13 @@ fn export_stdlib() {
|
|||
for entry in WalkDir::new(root)
|
||||
.into_iter()
|
||||
.map(Result::unwrap)
|
||||
.filter(|e| !e.file_type().is_dir())
|
||||
.filter(|e| {
|
||||
!e.file_type().is_dir()
|
||||
&& e.file_name()
|
||||
.to_str()
|
||||
.map(|s| s.ends_with(".zok"))
|
||||
.unwrap_or(false)
|
||||
})
|
||||
{
|
||||
let path: &Path = entry.path();
|
||||
let source = fs::read_to_string(path).unwrap();
|
||||
|
|
Loading…
Reference in a new issue