@visulima/fs
Version:
Human friendly file system utilities for Node.js
10 lines (8 loc) • 497 B
JavaScript
var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
const assertValidFileOrDirectoryPath = /* @__PURE__ */ __name((fileOrDirectoryPath) => {
if (!fileOrDirectoryPath || !(fileOrDirectoryPath instanceof URL) && typeof fileOrDirectoryPath !== "string") {
throw new TypeError("Path must be a non-empty string or URL.");
}
}, "assertValidFileOrDirectoryPath");
export { assertValidFileOrDirectoryPath as default };