MCPcopy Create free account
hub / github.com/Effect-TS/effect / directory

Function directory

packages/effect/src/unstable/cli/Param.ts:651–662  ·  view source on GitHub ↗
(
  kind: Kind,
  name: string,
  options?: {
    readonly mustExist?: boolean | undefined
  }
)

Source from the content-addressed store, hash-verified

649 * @since 4.0.0
650 */
651export const directory = <Kind extends ParamKind>(
652 kind: Kind,
653 name: string,
654 options?: {
655 readonly mustExist?: boolean | undefined
656 }
657): Param<Kind, string> =>
658 path(kind, name, {
659 pathType: "directory",
660 typeName: "directory",
661 mustExist: options?.mustExist
662 })
663
664/**
665 * Creates a file path parameter.

Callers

nothing calls this directly

Calls 1

pathFunction · 0.70

Tested by

no test coverage detected