• Checks if a given path is a valid directory path.

    Example

    isDir('/home/demo/pictures')
    // => true

    isDir('/home/demo/pictures/dummy.jpeg')
    // => false

    isDir('C:\\Users\\Documents\\Folder1')
    // => true

    isDir('/var/www/html')
    // => true

    isDir('C:\\Users\\Documents\\File1.txt')
    // => false

    Parameters

    • path: string

      The path to be checked.

    Returns boolean

    true if the path is a valid directory path, false otherwise.

Generated using TypeDoc v0.24.7