public static function trimPath($path) {
		$len = strlen($path);
		if ($path[$len - 1] == '\\' || $path[$len - 1] == '/') {
			$path = substr($path, 0, $len - 1);
		}

		return $path;
	}
public static function trimPath($path) {
		$len = strlen($path);
		if ($path[$len - 1] == '\\' || $path[$len - 1] == '/') {
			$path = substr($path, 0, $len - 1);
		}

		return $path;
	}
public static function trimPath ( $ path ) { $ len = strlen ( $ path ) ; if ( $ path [ $ len - 1 ] == '\\' || $ path [ $ len - 1 ] == '/' ) { $ path = substr ( $ path , 0 , $ len - 1 ) ; } return $ path ; }
Helper method to trim last trailing slash in file path

@param string $path Path to trim
@return string Trimmed path
Helper method to trim last trailing slash in file path