src/index.js
function(structure = []) {

		return new Promise((resolve, reject) => {

			if (Array.isArray(structure) === false) {
				throw new Error(`'structure' must be an array`)
			}

			parseStructure(structure, opts.cwd)
				.then((parsedStructure) => writeStructure(parsedStructure))
				.then((parsedStructure) => binStructure(parsedStructure, bin, opts.persistent))
				.then(resolve, reject)

		})

	}
function(structure = []) {

		return new Promise((resolve, reject) => {

			if (Array.isArray(structure) === false) {
				throw new Error(`'structure' must be an array`)
			}

			parseStructure(structure, opts.cwd)
				.then((parsedStructure) => writeStructure(parsedStructure))
				.then((parsedStructure) => binStructure(parsedStructure, bin, opts.persistent))
				.then(resolve, reject)

		})

	}
function ( structure = [ ] ) { return new Promise ( ( resolve , reject ) => { if ( Array . isArray ( structure ) === false ) { throw new Error ( ` ` ) } parseStructure ( structure , opts . cwd ) . then ( ( parsedStructure ) => writeStructure ( parsedStructure ) ) . then ( ( parsedStructure ) => binStructure ( parsedStructure , bin , opts . persistent ) ) . then ( resolve , reject ) } ) }
Converts an object into a persistent or temporary directory structure.
@param {?Array} structure - Array of objects containing information about a directory or file.
@returns {Promise<Array>} Parsed structure.
Converts an object into a persistent or temporary directory structure .