Function FindSubdirectoryByName

  • Asynchronously finds a subdirectory with a specific name in the given directory. Returns the name of the subdirectory if found, or undefined otherwise.

    Parameters

    • dir: string

      The path of the directory to search.

    • name: string

      The name of the subdirectory to find.

    • OptionalignoreCase: boolean = false

      If true, performs a case-insensitive comparison.

    Returns Promise<undefined | string>

    A Promise that resolves to the name of the found subdirectory or undefined if not found.

    5.0.5

    2023-11-25