public function isIn($dir) {
		if(!$this->formatPath($dir))
			return false;
		return strpos($this->formatPath($this->src()), $this->formatPath($dir)) === 0;
	}
public function isIn($dir) {
		if(!$this->formatPath($dir))
			return false;
		return strpos($this->formatPath($this->src()), $this->formatPath($dir)) === 0;
	}
public function isIn ( $ dir ) { if ( ! $ this -> formatPath ( $ dir ) ) return false ; return strpos ( $ this -> formatPath ( $ this -> src ( ) ) , $ this -> formatPath ( $ dir ) ) === 0 ; }
Check if the file is in a given directory.
@param  string  $dir
@return boolean     true if the file is in the directory, false otherwise
Check if the file is in a given directory .