但是又遇到困难了,我原本是想把一个文件夹下所有的文件登记入我的表格。 但是我用for语句, 不会计算下一级。如果文件夹下边有很多子文件夹?我该怎么样对子文件 夹一,一 遍历呢?
Dim ftp As New FTPClient
Dim ip As String = Tables("网络设置").Current("地址")
Dim ac As String = Tables("网络设置").Current("帐号")
Dim pa As String = Tables("网络设置").Current("密码")
Dim po As String = Tables("网络设置").Current("端口")
ftp.Host = ip
ftp.Account = ac
ftp.Password = pa
ftp.Port = po
Dim path As String = "/2023"
Dim dls As List(Of String) = ftp.GetDetailList(path)
Dim fls As List(Of String)
Dim path1 As String
For Each dl As String In dls
Output.Show(dl)
Next