UNPKG

@codemod-utils/files

Version:
24 lines (23 loc) 573 B
import type { FilePath } from './types.js'; /** * Creates the directories specified in the file path, if they don't * exist yet. * * ⚠️ Likely, you won't need this method but `createFiles()` instead. * * @param filePath * * A file path. * * @example * * Create the folder `ember-container-query` if it doesn't exist. * * ```ts * const newFilePath = 'ember-container-query/LICENSE.md'; * const destination = join(projectRoot, newFilePath); * * createDirectory(destination); * ``` */ export declare function createDirectory(filePath: FilePath): void;