public function fixPath($path) { if (substr($path, -1, 1) != '/' && substr($path, -1, 1) != '\\') { return $path . '/'; } else { return $path; } }