Get files in a folder

后端 未结 2 1781
无人共我
无人共我 2020-12-25 14:08

In my MVC application I have the following paths;

  • /content/images/full
  • /content/images/thumbs

How would I, in my c# controller, get a l

2条回答
  •  悲&欢浪女
    2020-12-25 14:24

    Directory.GetFiles("/content/images/thumbs")
    

    That will get all the files in a directory into a string array.

提交回复
热议问题