Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AngularJS - How to list the filenames from a given folder?

I have this folder/directory 'x' in the public folder of my application. Now I have path name till the folder i.e., /path/to/dir/x , but I don't know the names of the files in this directory. Now I need to provide URL links to the files in the html a tag's href attribute.

How do I list the name of the files in this directory?

like image 856
Harsha Vardhan Avatar asked Apr 06 '15 11:04

Harsha Vardhan


1 Answers

Angular is a client side library. Getting files from file directories is a backend capability.

like image 60
Mente Gee Avatar answered Nov 01 '22 03:11

Mente Gee