async function downloadMultipleFromS3(buckeName, filePaths) {
  /** Steps
   * 1. Iiterate filePaths array
   * 2. In each iteration, call the function downloadOneFromS3
   */
  try {
    if (!Array.isArray(filePaths))
      throw new Error(`filePaths - ${filePaths} is not an array.`);
    const results = filePaths.map(filePath =>
      downloadOneFromS3(buckeName, filePath)
    );
    return Promise.all(results);
  } catch (err) {
    throw new Error(
      `Error occurs in the downloadMultipleFromS3 : ${err.message}`
    );
  }
}
/** downloadMultipleFromS3 download multiple files from S3 to a given local directory
 * @param buckeName: String
 * @param filePaths: String[]
 * @return Promise<Boolean>
 */
downloadMultipleFromS3 download multiple files from S3 to a given local directory
@param buckeName: String
@param filePaths: String[]
@return Promise
downloadMultipleFromS3 download multiple files from S3 to a given local directory @param buckeName : String @param filePaths : String [] @return Promise
async function downloadMultipleFromS3(buckeName, filePaths) {
  try {
    if (!Array.isArray(filePaths))
      throw new Error(`filePaths - ${filePaths} is not an array.`);
    const results = filePaths.map(filePath =>
      downloadOneFromS3(buckeName, filePath)
    );
    return Promise.all(results);
  } catch (err) {
    throw new Error(
      `Error occurs in the downloadMultipleFromS3 : ${err.message}`
    );
  }
}
async function downloadMultipleFromS3 ( buckeName , filePaths ) { try { if ( ! Array . isArray ( filePaths ) ) throw new Error ( ` ${ filePaths } ` ) ; const results = filePaths . map ( filePath => downloadOneFromS3 ( buckeName , filePath ) ) ; return Promise . all ( results ) ; } catch ( err ) { throw new Error ( ` ${ err . message } ` ) ; } }
downloadMultipleFromS3 download multiple files from S3 to a given local directory
 @param buckeName: String
 @param filePaths: String[]
 @return Promise<Boolean>
downloadMultipleFromS3 download multiple files from S3 to a given local directory @param buckeName : String @param filePaths : String [] @return Promise<Boolean >
/** Steps
   * 1. Iiterate filePaths array
   * 2. In each iteration, call the function downloadOneFromS3
   */