-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
  • 369,052
  • 73
  • 620
  • 1,021
seven_swodniw
  • 863
  • 3
  • 9
  • 15

2 Answers2

1

You could use a RecursiveDirectoryIterator

Paul Dixon
  • 287,944
  • 49
  • 307
  • 343
1

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

hohner
  • 11,280
  • 8
  • 47
  • 84