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

/**
 * A parsed path object generated by path.parse() or consumed by path.format().
 */
export interface ParsedPath {
  /**
   * The root of the path such as '/' or 'c:\'
   */
  root: string;
  /**
   * The full directory path such as '/home/user/dir' or 'c:\path\dir'
   */
  dir: string;
  /**
   * The file name including extension (if any) such as 'index.html'
   */
  base: string;
  /**
   * The file extension (if any) such as '.html'
   */
  ext: string;
  /**
   * The file name without extension (if any) such as 'index'
   */
  name: string;
}

export type FormatInputPathObject = Partial<ParsedPath>;

// denoCacheMetadata={"headers":{"content-length":"728","accept-ranges":"bytes","cross-origin-opener-policy":"same-origin","server":"deno/gcp-us-west2","via":"http/2 edgeproxy-h","server-timing":"fetchSource;dur=28","x-amz-cf-pop":"LAX53-P1","x-frame-options":"DENY","x-amz-cf-id":"4yUhikIbNzA21Tbww5uFVAUdbowVBY-3nIfKNmoE5Wp3V0lZghMsJw==","vary":"Accept-Encoding, Origin","x-cache":"Hit from cloudfront","etag":"\"62240f93b331da76b11ef9b31df0eb6e\"","age":"31093179","access-control-allow-origin":"*","content-security-policy":"default-src 'none'; style-src 'unsafe-inline'; sandbox","cross-origin-embedder-policy":"same-origin","date":"Sat, 05 Oct 2024 18:47:27 GMT","content-type":"application/typescript; charset=utf-8","cross-origin-resource-policy":"same-origin","last-modified":"Thu, 12 Oct 2023 22:56:03 GMT","referrer-policy":"strict-origin-when-cross-origin","strict-transport-security":"max-age=63072000; includeSubDomains; preload","x-amz-replication-status":"COMPLETED","cache-control":"public, max-age=31536000, immutable","x-amz-server-side-encryption":"AES256","x-amz-version-id":"98Hyc7ICeSA0Xe3FZ3wx90ejd8FxWU2U","x-content-type-options":"nosniff"},"url":"https://deno.land/std@0.204.0/path/_interface.ts","time":1759247225}