I'm trying to have my application display all of its files in a gridview, except for a select few like web.config so far I have this:
---Gets Root path---
Dim appPath As String = Request.PhysicalApplicationPath
---Gets Root files---
Dim RootFiles As New DirectoryInfo(appPath)
Dim AccountFiles As New DirectoryInfo(appPath & "\Account")
---Concats DirectoryInfo arrays---
Dim FileConcat As New List(Of DirectoryInfo)()
FileConcat.AddRange(RootFiles.GetFiles())
FileConcat.AddRange(AccountFiles.GetFiles())
GrdFiles.DataSource = FileConcat
GrdFiles.DataBind()
I need to know how to dynamically remove files like web.config from these arrays (dynamic in the sense that I don't have to find out what the index is and remove it)
Go to the complete details ...