Namespace

Runtime\PS\Files

Package files carries the filesystem shims phpscript exposes to PHP: path helpers, reads, writes, streams, and the uploaded-file functions that go with $_FILES.

Description

Package files carries the filesystem shims phpscript exposes to PHP: path helpers, reads, writes, streams, and the uploaded-file functions that go with $_FILES. They sit here and not in stdlib because they are the one part of the standard library bound to a directory on the host, and because a host that runs untrusted scripts may leave them out.

Go's fs.FS only reads and writes (fopen/fwrite/mkdir) use the os package against the same root; the runner's include resolution still uses the fs.FS abstraction passed to runner.New.

Package
stdlib/ps/filesgodoc