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
Functions
A call writes the bare name or the name under this area:
\Runtime\PS\Files\basename().
- basename
- chdir
- chgrp
- chmod
- chown
- closedir
- copy
- dirname
- fclose
- feof
- fgetcsv
- fgets
- file_exists
- file_get_contents
- file_put_contents
- filemtime
- filesize
- filetype
- fopen
- fputcsv
- fread
- fseek
- ftell
- fwrite
- getcwd
- glob
- is_dir
- is_executable
- is_file
- is_readable
- is_uploaded_file
- is_writable
- lstat
- mkdir
- move_uploaded_file
- opendir
- pathinfo
- readdir
- readlink
- realpath
- rename
- rewind
- rmdir
- scandir
- stat
- stream_get_contents
- stream_get_meta_data
- symlink
- touch
- unlink