Skip to main content

assertIsDirectory()

function assertIsDirectory(directoryPath, stats): void

Asserts that the given path is a directory.

Parameters

ParameterType
directoryPathPathBuilderLike
statsStats

Returns

void

Throws

If the path is not a directory.