src/sassdoc.js
function refresh (env) {
    return safeWipe(env.dest, {
      force: true,
      parent: is.string(env.src) || is.array(env.src) ? g2b(env.src) : null,
      silent: true,
    })
      .then(() => mkdir(env.dest))
      .then(() => {
        env.logger.log(`Folder \`${env.displayDest}\` successfully refreshed.`)
      })
      .catch(err => {
        // Friendly error for already existing directory.
        throw new errors.SassDocError(err.message)
      })
  }
function refresh (env) {
    return safeWipe(env.dest, {
      force: true,
      parent: is.string(env.src) || is.array(env.src) ? g2b(env.src) : null,
      silent: true,
    })
      .then(() => mkdir(env.dest))
      .then(() => {
        env.logger.log(`Folder \`${env.displayDest}\` successfully refreshed.`)
      })
      .catch(err => {
        // Friendly error for already existing directory.
        throw new errors.SassDocError(err.message)
      })
  }
function refresh ( env ) { return safeWipe ( env . dest , { force : true , parent : is . string ( env . src ) || is . array ( env . src ) ? g2b ( env . src ) : null , silent : true , } ) . then ( ( ) => mkdir ( env . dest ) ) . then ( ( ) => { env . logger . log ( ` \` ${ env . displayDest } \` ` ) } ) . catch ( err => { // Friendly error for already existing directory. throw new errors . SassDocError ( err . message ) } ) }
Safely wipe and re-create the destination directory.
@return {Promise}
Safely wipe and re - create the destination directory .