function directoriesStructure(savePath) {
  var baseDir = ""
  if (validator.equals(store.get("platform"), "both_platform")) {
    //check for combine
    if (validator.equals(store.get("combined"), "combined_result")) {
      //make base directory
      baseDir = path.join(savePath, 'images')
      seperateDirCreate(baseDir)
    }
    else {
      //make base directory
      baseDir = path.join(savePath, 'pexels')
      seperateDirCreate(baseDir)

      //make base directory
      baseDir = path.join(savePath, 'unsplash')
      seperateDirCreate(baseDir)

    }


  }
  else if (validator.equals(store.get("platform"), "pexels")) {
    //make base directory
    baseDir = path.join(savePath, 'pexels')
    seperateDirCreate(baseDir)

  }
  else if (validator.equals(store.get("platform"), "unsplash")) {
    //make base directory
    baseDir = path.join(savePath, 'unsplash')
    seperateDirCreate(baseDir)
  }

  liveCheck()


}
//checking directories structure to be followed
checking directories structure to be followed
checking directories structure to be followed
function directoriesStructure(savePath) {
  var baseDir = ""
  if (validator.equals(store.get("platform"), "both_platform")) {
    if (validator.equals(store.get("combined"), "combined_result")) {
      baseDir = path.join(savePath, 'images')
      seperateDirCreate(baseDir)
    }
    else {
      baseDir = path.join(savePath, 'pexels')
      seperateDirCreate(baseDir)
      baseDir = path.join(savePath, 'unsplash')
      seperateDirCreate(baseDir)
    }
  }
  else if (validator.equals(store.get("platform"), "pexels")) {
    baseDir = path.join(savePath, 'pexels')
    seperateDirCreate(baseDir)
  }
  else if (validator.equals(store.get("platform"), "unsplash")) {
    baseDir = path.join(savePath, 'unsplash')
    seperateDirCreate(baseDir)
  }
  liveCheck()
}
function directoriesStructure ( savePath ) { var baseDir = "" if ( validator . equals ( store . get ( "platform" ) , "both_platform" ) ) { if ( validator . equals ( store . get ( "combined" ) , "combined_result" ) ) { baseDir = path . join ( savePath , 'images' ) seperateDirCreate ( baseDir ) } else { baseDir = path . join ( savePath , 'pexels' ) seperateDirCreate ( baseDir ) baseDir = path . join ( savePath , 'unsplash' ) seperateDirCreate ( baseDir ) } } else if ( validator . equals ( store . get ( "platform" ) , "pexels" ) ) { baseDir = path . join ( savePath , 'pexels' ) seperateDirCreate ( baseDir ) } else if ( validator . equals ( store . get ( "platform" ) , "unsplash" ) ) { baseDir = path . join ( savePath , 'unsplash' ) seperateDirCreate ( baseDir ) } liveCheck ( ) }
checking directories structure to be followed
checking directories structure to be followed
//check for combine //make base directory //make base directory //make base directory //make base directory //make base directory