For information about Globalscape, visit www.globalscape.com. |
Use the FileType, FileSize, and FileTimeModified properties to retrieve information about a particular item.
Syntax
long Object.FileType
long Object.FileSize
string Object.FileTimeModified
Return Values
For FileType:
1 |
Directory |
2 |
File |
3 |
Link |
For FileSize:
the size in bytes of the file
For FileTimeModfied:
mm/dd/yyyy hh:mm:ss
Example
Set fserv = CreateObject("CuteFTPPro.TEConnection")
strRemote = "somefilename.ext"
if cbool(fserv.RemoteExists(strRemote)) then
MsgBox "Remote file/folder info: Type=" & fserv.FileType & ", Size=" & fserv.fileSize & ", Date=" & fserv.FileTimeModified & strNL & "(type:1-dir,2-file,3-link)"
else
MsgBox "Error! " & fserv.ErrorDescription
End If