function getImagesFolder (dataFile) {
  const stat = fs.statSync(dataFile)
  const dataFileFolder = stat.isFile() ? path.dirname(dataFile) : dataFile

  return path.join(dataFileFolder, imagesFolderName)
}
function getImagesFolder (dataFile) {
  const stat = fs.statSync(dataFile)
  const dataFileFolder = stat.isFile() ? path.dirname(dataFile) : dataFile

  return path.join(dataFileFolder, imagesFolderName)
}
function getImagesFolder ( dataFile ) { const stat = fs . statSync ( dataFile ) const dataFileFolder = stat . isFile ( ) ? path . dirname ( dataFile ) : dataFile return path . join ( dataFileFolder , imagesFolderName ) }
------------------------------------------------------------- Images. ------------------------------------------------------------- Get the folder containing the images.
------------------------------------------------------------- Images . ------------------------------------------------------------- Get the folder containing the images .