Function: validateFilePathOrCreateMkdir()

validateFilePathOrCreateMkdir(filePath): Promise<void>

Validates the given file path and creates the necessary directories if they do not exist.

Parameters

filePath

string

The file path to validate and create directories for.

Returns

Promise<void>

  • A promise that resolves once the directories are created.