// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// This module is browser compatible.

import { assertPath } from "./assert_path.ts";

export function assertArg(path: string) {
  assertPath(path);
  if (path.length === 0) return ".";
}

// denoCacheMetadata={"headers":{"cf-cache-status":"HIT","cache-control":"public, max-age=31536000, immutable","x-jsr-backend":"modules","date":"Tue, 28 Jul 2026 12:31:15 GMT","x-content-type-options":"nosniff","alt-svc":"h3=\":443\"; ma=86400","age":"38659","content-type":"text/typescript","vary":"Origin","nel":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}","cross-origin-resource-policy":"cross-origin","accept-ranges":"bytes","etag":"\"99de9b3a5dbad98f43d09b2cc6eecd0f\"","access-control-expose-headers":"*","access-control-allow-origin":"*","x-robots-tag":"noindex","content-length":"263","cf-ray":"a223e658cda67db6-LAX","server":"cloudflare","content-security-policy":"default-src 'none'; script-src 'none'; style-src 'none'; img-src 'none'; font-src 'none'; connect-src 'none'; frame-src 'none'; object-src 'none'; frame-ancestors 'none'; sandbox; form-action 'none';","set-cookie":"__cf_bm=zCZ4kNXRZJ7jSZn1r8D1wjT8dijuUr512addZIVC7V8-1785241875.3398662-1.0.1.1-57AOaSw0xffKiFH_ngrZS6ysgOJp57Jpxe9b8EOSjgPNSqKO2NxrtLK9P38F2hp03FwbrUv77eJ5Kc.IW7HMO.EfFXAzyHpuMiUc5Kbje0U1xWukwXdy5V52zceJknth; HttpOnly; SameSite=None; Secure; Path=/; Domain=jsr.io; Expires=Tue, 28 Jul 2026 13:01:15 GMT","report-to":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=WeyYvrwZsY4n0R6a0CrYAtAehgtpXmGFlJgskPgkncAdh7GCQ1%2BjaITDMXD0t9doeg2FqmnMSIBo1POoLBwro2NbNceFM2mF0hQmWO9tCaaw9d8QAqyR0jI%3D\"}]}"},"url":"https://jsr.io/@std/path/1.0.0-rc.2/_common/normalize.ts","time":1785241875}