-3

Does anybody know, how I can scan the files on server (in PHP) for files and folders to list them in a downable treeview using angular?

ng-User
  • 243
  • 1
  • 6
  • 18

1 Answers1

1

First you have to scan the directory with this sample : https://stackoverflow.com/a/3827000/4682796

Then you change the array structure with a key => value pair for each element. You output the new array with json encode and then you use this http://ngmodules.org/modules/angular.treeview to make it work

Community
  • 1
  • 1
jmgross
  • 2,306
  • 1
  • 20
  • 24