src/Filesystem.php
public function files($paths = false, $createMissing = false)
    {
        if ($paths === false) {
            return $this->find('*')->files();
        }

        $list = new Collection;
        foreach ($paths as $path) {
            $list->add($this->file($path, $createMissing));
        }
        return $list;
    }
public function files($paths = false, $createMissing = false)
    {
        if ($paths === false) {
            return $this->find('*')->files();
        }

        $list = new Collection;
        foreach ($paths as $path) {
            $list->add($this->file($path, $createMissing));
        }
        return $list;
    }
public function files ( $ paths = false , $ createMissing = false ) { if ( $ paths === false ) { return $ this -> find ( '*' ) -> files ( ) ; } $ list = new Collection ; foreach ( $ paths as $ path ) { $ list -> add ( $ this -> file ( $ path , $ createMissing ) ) ; } return $ list ; }
Gets files by relative or absolute path,
optionally creates missing files.

@param  array   $paths
@param  boolean $createMissing
@return Tarsana\Filesystem\Collection

@throws Tarsana\Filesystem\Exceptions\FilesystemException
Gets files by relative or absolute path optionally creates missing files .