Req #72046 [Com]: PharData::buildFromIterator() directory support

From: Date: Sun, 17 Apr 2016 22:01:36 +0000
Subject: Req #72046 [Com]: PharData::buildFromIterator() directory support
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-200619@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72046&edit=1 ID: 72046 Comment by: tklingenberg at lastflood dot net Reported by: tklingenberg at lastflood dot net Summary: PharData::buildFromIterator() directory support Status: Open Type: Feature/Change Request Package: PHAR related Operating System: Linux PHP Version: 5.6.20 Block user comment: N Private report: N New Comment: Previous behaviour (#46060) that was fixed for addDir() is now still on itertor process with a directory: Directory path as zero-byte file. Previous Comments: ------------------------------------------------------------------------ [2016-04-17 21:56:42] tklingenberg at lastflood dot net Description: ------------ When building from an iterator, the iterator can return SplFileInfo objects. These can represent a *file* or a *directory*. Right now each iteration is treated as a file. It would be great to support directories as well and whenever encountering a directory SplFileInfo to add it's path as empty directory (compare PharData::addEmptyDir()) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=72046&edit=1

« previous php.bugs (#200619) next »