From 6d257691a39fb8c4191f4564ec6406d080dbf6b5 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 9 Aug 2026 18:41:49 +0900 Subject: 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) --- crates/shirabe-php-shim/src/fs.rs | 5 ----- 1 file changed, 5 deletions(-) (limited to 'crates/shirabe-php-shim/src/fs.rs') 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 { - readlink(&self.path) - } - pub fn get_size(&self) -> i64 { std::fs::metadata(&self.path) .map(|m| m.len() as i64) -- cgit v1.3.1-4-g156e