function * uploadFolderSaga (action) {
  try {
    const files = readdirRecursive(action.source)
    const uploads = uploadDirectory(action.source, files, action.siapath)
    for (const upload in uploads.toArray()) {
      yield put(uploads.get(upload))
    }
  } catch (e) {
    sendError(e)
  }
}
// action.siapath: the working directory to upload the folder inside
action.siapath: the working directory to upload the folder inside
action . siapath : the working directory to upload the folder inside
function * uploadFolderSaga (action) {
  try {
    const files = readdirRecursive(action.source)
    const uploads = uploadDirectory(action.source, files, action.siapath)
    for (const upload in uploads.toArray()) {
      yield put(uploads.get(upload))
    }
  } catch (e) {
    sendError(e)
  }
}
function * uploadFolderSaga ( action ) { try { const files = readdirRecursive ( action . source ) const uploads = uploadDirectory ( action . source , files , action . siapath ) for ( const upload in uploads . toArray ( ) ) { yield put ( uploads . get ( upload ) ) } } catch ( e ) { sendError ( e ) } }
action.siapath: the working directory to upload the folder inside
action . siapath : the working directory to upload the folder inside