OXIESEC PANEL
- Current Dir:
/
/
usr
/
share
/
php
/
Composer
/
Package
/
Archiver
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
07/20/2024 06:32:22 AM
rwxr-xr-x
📄
ArchivableFilesFilter.php
990 bytes
01/31/2018 03:28:18 PM
rw-r--r--
📄
ArchivableFilesFinder.php
2.82 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
ArchiveManager.php
5.94 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
ArchiverInterface.php
1.24 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
BaseExcludeFilter.php
3.9 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
ComposerExcludeFilter.php
858 bytes
01/31/2018 03:28:18 PM
rw-r--r--
📄
GitExcludeFilter.php
2.03 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
HgExcludeFilter.php
2.73 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
PharArchiver.php
2.8 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
ZipArchiver.php
1.95 KB
01/31/2018 03:28:18 PM
rw-r--r--
Editing: ArchivableFilesFilter.php
Close
<?php /* * This file is part of Composer. * * (c) Nils Adermann <naderman@naderman.de> * Jordi Boggiano <j.boggiano@seld.be> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Composer\Package\Archiver; use FilterIterator; use PharData; class ArchivableFilesFilter extends FilterIterator { private $dirs = array(); /** * @return bool true if the current element is acceptable, otherwise false. */ public function accept() { $file = $this->getInnerIterator()->current(); if ($file->isDir()) { $this->dirs[] = (string) $file; return false; } return true; } public function addEmptyDir(PharData $phar, $sources) { foreach ($this->dirs as $filepath) { $localname = str_replace($sources . "/", '', $filepath); $phar->addEmptyDir($localname); } } }