[Pas2js] ZenFS added
Michael Van Canneyt
michael at freepascal.org
Tue Jul 2 09:02:39 CEST 2024
On Mon, 1 Jul 2024, Jean SUZINEAU via Pas2js wrote:
> Hello,
>
> I'm trying to load files from the server and copy them in the local ZenFS
> file storage.
>
> I saw in the fresnelhost.js of the demo
> https://www.freepascal.org/~michael/fresnel/basic/ that it uses a function
> PreLoadFilesIntoDirectory, but I couldn't find the corresponding pascal
> source, maybe this is private to your project or not yet released ?
No, this function is part of the WASI host class for runnning webassembly
programs. Look for the wasienv and wasihostapp units in packages/wasi/src.
These functions can be copied and used even if you don't use Webassembly.
I will create a zenfsutils unit that has this function, makes life easier.
Michael.
More information about the Pas2js
mailing list