fs-nextra
Version:
Node.js fs next-gen extra (nextra) methods.
22 lines • 842 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.ensureFileAtomic = exports.createFileAtomic = void 0;
const createFile_1 = require("./createFile");
/**
* Creates an file copy, making all folders required to satisfy the given file path atomically.
* @function ensureFileAtomic
* @memberof fsn/nextra
* @param file Path of the file you want to create
*/
/**
* Creates an file copy, making all folders required to satisfy the given file path atomically.
* @function createFileAtomic
* @memberof fsn/nextra
* @param file Path of the file you want to create
*/
function createFileAtomic(file) {
return createFile_1.createFile(file, true);
}
exports.createFileAtomic = createFileAtomic;
exports.ensureFileAtomic = createFileAtomic;
//# sourceMappingURL=createFileAtomic.js.map
;