diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-21 21:03:31 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-21 21:05:13 +0900 |
| commit | 8db88c2da2cf387bc58843ac5093bb15b9fc3252 (patch) | |
| tree | a4114195195dd86d32851a40ac81b890d9078d5a /crates/shirabe/tests/util/no_proxy_pattern_test.rs | |
| parent | 80c2870c5c38ba9b93d5f0ee4e594d72e5628723 (diff) | |
| download | php-shirabe-8db88c2da2cf387bc58843ac5093bb15b9fc3252.tar.gz php-shirabe-8db88c2da2cf387bc58843ac5093bb15b9fc3252.tar.zst php-shirabe-8db88c2da2cf387bc58843ac5093bb15b9fc3252.zip | |
feat(php-shim): implement fs helpers and recursive directory iterators
Give RecursiveDirectoryIterator/RecursiveIteratorIterator real backing
data: the iterator walks the tree in SELF_FIRST/CHILD_FIRST order, yields
SplFileInfo-like entries (is_dir/is_file/is_link/get_pathname/get_size),
and a Cell cursor lets get_sub_pathname() report the current entry.
Implement the std-backed file helpers: lstat, mkdir (umask-aware via
DirBuilder), symlink, chmod, fileperms, fileowner, is_executable,
unlink_silent, touch (create-if-absent), file()/file_put_contents3/
file_get_contents5, tempnam, umask (via /proc/self/status), and a glob()
supporting *, ?, [...] and {..} brace expansion.
The PhpMixed-keyed fopen stream family, disk_free_space, touch with an
explicit time, opendir and DirectoryIterator remain TODO(phase-d): they
need a PhpMixed stream representation or syscalls std does not expose.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/tests/util/no_proxy_pattern_test.rs')
0 files changed, 0 insertions, 0 deletions
