# assertDirectoryExists Source: https://smartassertions.dev/assertions/assertDirectoryExists/ Index of every page: https://smartassertions.dev/llms.txt Assert that a filesystem path exists and is a directory. ## Usage ```ts import { assertDirectoryExists } from "@kensio/smartass"; const directoryPath = "src"; assertDirectoryExists(directoryPath); // This validates the directory at runtime without changing the path type. ``` ## Source Source file: [`src/assert/directory-exists/directory-exists.assert.ts`](https://github.com/KensioSoftware/smartass/blob/main/src/assert/directory-exists/directory-exists.assert.ts)