aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-php-shim/src
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-08-09 18:41:49 +0900
committernsfisis <nsfisis@gmail.com>2026-08-09 18:41:49 +0900
commit6d257691a39fb8c4191f4564ec6406d080dbf6b5 (patch)
tree0e3749b2a35bb2a3afc0d72575024194417b2257 /crates/shirabe-php-shim/src
parent72cbecaec29cecc723ce29c87d10048114aeef5b (diff)
downloadphp-shirabe-6d257691a39fb8c4191f4564ec6406d080dbf6b5.tar.gz
php-shirabe-6d257691a39fb8c4191f4564ec6406d080dbf6b5.tar.zst
php-shirabe-6d257691a39fb8c4191f4564ec6406d080dbf6b5.zip
feat(path-downloader): restrict a mirrored path package to its archivable files
PathDownloader builds an ArchivableFilesFinder and hands it to Filesystem::mirror as the iterator that selects what to copy, so a path package installed by mirroring drops what .gitattributes marks export-ignore, what .gitignore excludes and the VCS directories. The port dropped the argument, and mirrored the source tree whole. Every method mirror() calls on the entries it walks is derived from the pathname, so the iterator is modeled as a list of pathnames rather than as a Traversable of SplFileInfo. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe-php-shim/src')
-rw-r--r--crates/shirabe-php-shim/src/fs.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/crates/shirabe-php-shim/src/fs.rs b/crates/shirabe-php-shim/src/fs.rs
index 2142b0e7..c2b0dc41 100644
--- a/crates/shirabe-php-shim/src/fs.rs
+++ b/crates/shirabe-php-shim/src/fs.rs
@@ -190,11 +190,6 @@ impl RecursiveIteratorFileInfo {
self.path.to_string_lossy().into_owned()
}
- // SplFileInfo::getLinkTarget(): readlink() on the entry. None is PHP's false-on-failure.
- pub fn get_link_target(&self) -> Option<String> {
- readlink(&self.path)
- }
-
pub fn get_size(&self) -> i64 {
std::fs::metadata(&self.path)
.map(|m| m.len() as i64)