[add]
Some checks failed
Run BaseX Tests / test (push) Failing after 23s

This commit is contained in:
Andy Bunce 2025-01-31 22:59:56 +00:00
parent 05619a1f2a
commit 5a99d9ae76
4 changed files with 9 additions and 4 deletions

View file

@ -63,5 +63,11 @@ as empty-sequence(){
for $f in $urls
let $dest:=$destdir || replace($f,"^.*/","")
where not(file:exists($dest))
return file:write-binary($dest, fetch:binary(resolve-uri($f,$build:REPO)=>trace("Download: ")))
return build:write-binary($dest, fetch:binary(resolve-uri($f,$build:REPO)=>trace("Download: ")))
};
declare function build:write-binary($dest as xs:string,$contents)
as empty-sequence{
file:create-dir(file:parent($dest)),
file:write-binary($dest,$contents)
};