- Make sure we are not trying to pack directories

This commit is contained in:
Marcus Boerger 2008-06-04 14:36:33 +00:00
parent 376ca12a21
commit ad8eb0f672

View file

@ -616,7 +616,7 @@ class PharCommand extends CLICommand
try {
foreach($dir as $file) {
if (empty($stub) || $file->getRealPath() != $stub->getRealPath()) {
if ((empty($stub) || $file->getRealPath() != $stub->getRealPath()) && !is_dir($file)) {
self::phar_add_file($phar, $level, $dir->getSubPathName(), $file, $compress, $noloader);
}
}