肯定有啊,确定仔细看了?
GetDetailList
用于返回FTP服务器指定目录下的全部文件和子目录,包括文件的名称、修改时间和大小,各项之间用符号*分隔。
GetDetaiList(Path)
Path:可选参数,用于指定目录,如果省略,则返回当前目录下的全部子目录名。
Dim ftp1 As New FtpClient
Dim dls As List(of String)
ftp1.Host="196.128.143.28"
ftp1.Account = "foxuser"
ftp1.Password = "138238110"
dls = ftp1.GetDetailList("\")
For Each dl As String In dls
Output.Show(dl)
Next
GetFileSize
返回ftp上指定文件的大小,以字节为单位。
示例
Dim ftp1 As New FtpClient
ftp1.Host="196.128.143.28"
ftp1.Account = "foxuser"
ftp1.Password = "138238110"
Dim sz As Integer
sz = ftp1.GetFileSize("\photo\jz.png")
Output.Show("文件大小:" & sz)
GetFileTime
返回ftp上指定文件最后一次修改的日期时间。
Dim ftp1 As New FtpClient
ftp1.Host="196.128.143.28"
ftp1.Account = "foxuser"
ftp1.Password = "138238110"
Dim sz As Date
sz = ftp1.GetFileTime("\photo\jz.png")
Output.Show("修改时间:" & sz)