private function fileFormatDir($strDirectory, $strSlash=DIRECTORY_SEPARATOR) {
		return substr($strDirectory, -1) != $strSlash ? $strDirectory.$strSlash : $strDirectory;
	}
private function fileFormatDir($strDirectory, $strSlash=DIRECTORY_SEPARATOR) {
		return substr($strDirectory, -1) != $strSlash ? $strDirectory.$strSlash : $strDirectory;
	}
private function fileFormatDir ( $ strDirectory , $ strSlash = DIRECTORY_SEPARATOR ) { return substr ( $ strDirectory , - 1 ) != $ strSlash ? $ strDirectory . $ strSlash : $ strDirectory ; }
Makes sure the directory ends with a slash

@param string $strDirectory
@return string
Makes sure the directory ends with a slash