@todo change file_scan_directory() to:

if (is_dir($directory)) {
  $files = \Drupal::service('file_system')->scanDirectory($directory);
}

Change record:
https://www.drupal.org/node/3038437

Comments

Nathaniel created an issue. See original summary.

nathaniel’s picture

Issue summary: View changes
Status: Active » Postponed

Postponing this one since it is drupal:system (>=8.8.0)

anantagoswami’s picture

Assigned: Unassigned » anantagoswami
Status: Postponed » Needs work
nathaniel’s picture

Version: 8.x-4.x-dev » 8.x-5.x-dev
gnanagowthaman sankar’s picture

Hi @anantagoswami,

Here by i attached the patch. Please review and let me know for any changes.

Thanks & Regards,
Gnanagowthaman sankar

gnanagowthaman sankar’s picture

Status: Needs work » Needs review
StatusFileSize
new3.76 KB

Patch,

Thanks & Regards,
Gnanagowthaman sankar

  • Nathaniel committed 6c15b38 on 8.x-5.x
    Issue #3100375 by Gnanagowthaman sankar, Nathaniel: file_scan_directory...
nathaniel’s picture

Assigned: anantagoswami » Unassigned
Status: Needs review » Fixed

Yep, this works thanks for the patch!

Patch applied fine. I made a couple minor adjustments. Had to flip $container->get('module_handler') and $container->get('file_system') in PhotosDirectoryImportForm it was throwing an error.

gnanagowthaman sankar’s picture

You are always welcome @Nathaniel. Ok GREAT

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.