'use strict';

var file = require('./file.js');
var link = require('./link.js');
var symlink = require('./symlink.js');

const { createFile, createFileSync } = file.file;
const { createLink, createLinkSync } = link.link;
const { createSymlink, createSymlinkSync } = symlink.symlink;

var ensure = {
  // file
  createFile,
  createFileSync,
  ensureFile: createFile,
  ensureFileSync: createFileSync,
  // link
  createLink,
  createLinkSync,
  ensureLink: createLink,
  ensureLinkSync: createLinkSync,
  // symlink
  createSymlink,
  createSymlinkSync,
  ensureSymlink: createSymlink,
  ensureSymlinkSync: createSymlinkSync
};

exports.ensure = ensure;
