D
David C
I have an ASP.Net web site that does some file system folder access. One of
the things I am doing is counting the # of files in a passed directory to
determine if I show or hide something on the page. My problem is that I
want to ignore hidden files in the count but I can't find a way to do this.
Below is my code. Can someone let me know if this is possible and how to do
it? Thanks.
David
Public Shared Function FilesInPath(ByVal strPhyPath As String) As Integer
Dim intFiles As Integer = My.Computer.FileSystem.GetFiles(strPhyPath).Count
FilesInPath = intFiles
End Function
the things I am doing is counting the # of files in a passed directory to
determine if I show or hide something on the page. My problem is that I
want to ignore hidden files in the count but I can't find a way to do this.
Below is my code. Can someone let me know if this is possible and how to do
it? Thanks.
David
Public Shared Function FilesInPath(ByVal strPhyPath As String) As Integer
Dim intFiles As Integer = My.Computer.FileSystem.GetFiles(strPhyPath).Count
FilesInPath = intFiles
End Function