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.
Asynchronously finds a subdirectory with a specific name in the given directory. Returns the name of the subdirectory if found, or undefined otherwise.