PHPExiftool\Reader::files PHP Method

files() public method

Example usage: Will scan 3 files : dc00.jpg in CWD and absolute paths /tmp/image.jpg and /tmp/raw.CR2 $Reader ->files('dc00.jpg') ->files(array('/tmp/image.jpg', '/tmp/raw.CR2'))
public files ( string | array $files ) : Reader
$files string | array The files
return Reader
    public function files($files)
    {
        $this->resetResults();
        $this->files = array_merge($this->files, (array) $files);
        return $this;
    }

Usage Example

 /**
  * @covers PHPExiftool\Reader::resetResults
  */
 public function testResetFilters()
 {
     $file = self::$tmpDir . '/test.jpg';
     $this->object->files($file)->all();
     $file = self::$tmpDir . '/test2.jpg';
     $this->object->files($file)->all();
     $this->assertEquals(2, count($this->object->all()));
 }
All Usage Examples Of PHPExiftool\Reader::files