All files / path / _common / dirname.ts

100.00% Branches 1/1
100.00% Lines 5/5
1
2
3
4
5
6
7
8
9
 
 
 
x58
 
x58
x266
x266
x266







// Copyright 2018-2025 the Deno authors. 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 ".";
}