Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Filtering on ListDirectoryDetails
Message
From
03/01/2011 16:18:59
 
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01494446
Message ID:
01494498
Views:
26
>Assuming you've got the result from ListDirectoryDetails in a string named 'detailString' then something like this will at least get the relevant lines:
Dim filedetails = detailString.Split(New String() {vbCr & vbLf}, StringSplitOptions.RemoveEmptyEntries)
>Dim zipFiles As List(Of String) = (From filedetail In filedetails.Where(Function(name) System.IO.Path.GetExtension(name) = ".zip")filedetail).ToList()
(Hope the VB translation is correct)

My FTP class as a method called GetDirectory(). It stored the directory into oFileDirectory. So, I can do something like this:
            ' Get the directory
            If Not loFTP.GetDirectory() Then
                oApp.ErrorSetup(, loFTP.cMessage)
                Return False
            End If

            ' For each file in the directory
            For Each loRowDataView In loFTP.oFileDirectory.oDataView
                lcFile = Trim(loRowDataView("Name"))
But, thanks for the information
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform