/**
  * Get list of files in a local file path
  *
  * @param $localPath
  * @return string[]
  */
 public function getLocalFileListForPath($localPath)
 {
     $files = [];
     $objects = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($localPath), RecursiveIteratorIterator::LEAVES_ONLY, FilesystemIterator::SKIP_DOTS);
     /**
      * @var string $path
      * @var SplFileObject $object
      */
     foreach ($objects as $path => $object) {
         /** @noinspection TypeUnsafeComparisonInspection */
         /** @noinspection NotOptimalIfConditionsInspection */
         if ($object->getFilename() != '.' && $object->getFilename() != '..') {
             $hostTempFolderPath = $this->_config->getHostSpoolerFolderPath();
             /** @noinspection PhpMethodOrClassCallIsNotCaseSensitiveInspection */
             $remoteFilePath = str_replace($hostTempFolderPath, '/', $object->getPathName());
             /** @noinspection PhpMethodOrClassCallIsNotCaseSensitiveInspection */
             $file = ['name' => $object->getFilename(), 'localPath' => $object->getPathName(), 'remotePath' => $remoteFilePath, 'modified' => $object->getMTime()];
             $files[$object->getFilename()] = $file;
         }
     }
     return $files;
 }