Pathinfo doesn't check for the existence of a file, it just parses a string. Nothing to do with an actual filesystem.  

Sent from my iPhone
Please excuse my brevity

On 12/03/2013, at 6:19 AM, Maxime Fabre <notifications@github.com> wrote:

> In src/Illuminate/Filesystem/Filesystem.php:
> 
> > @@ -136,6 +137,23 @@ public function extension($path)
> >  	}
> >  
> >  	/**
> > +	 * Returns a sanitized filename
> > +	 *
> > +	 * @param string $filename A filename
> > +	 *
> > +	 * @return string
> > +	 */
> > +	public function sanitize($filename)
> > +	{
> > +		$extension = '.'.substr(strrchr($filename, '.'), 1);
> This is actually because most of the time when I use a function like this it's not on an actual file or on a file that is reachable by pathinfo. That's the problem with the actual File::extension method, if you're not doing it on the full path it doesn't work.
> 
> —
> Reply to this email directly or view it on GitHub.