-1

Please let me know how to make a list of paths of all descendant files of a directory in php,so that you can copy them to another directory?

Lightness Races in Orbit
  • 378,754
  • 76
  • 643
  • 1,055
seven_swodniw
  • 881
  • 3
  • 9
  • 15

2 Answers2

1

You could use a RecursiveDirectoryIterator

Paul Dixon
  • 295,876
  • 54
  • 310
  • 348
1

Use glob if you want to be specific about file/directory names

hohner
  • 11,498
  • 8
  • 49
  • 84