@almaclaine/fs-utils
Version:
Utilities for working with the file system.
6 lines • 516 B
JavaScript
export const doesNotExistError = (path) => `Provided path ${path} does not exist: ${path}.`;
export const alreadyExistsError = (path) => `Provided file/directory already exists: ${path}.`;
export const isNotDirectoryError = (path) => `Provided path ${path} is not a directory.`;
export const isDirectoryError = (path) => `Provided path ${path} is a directory.`;
export const isNotJsonFilError = (path) => `Provided path ${path} is not a json file. Extension must be .json`;
//# sourceMappingURL=errorTemplates.js.map