Single File Details

To get information about a single file, it is not necessary to list all of the files in a directory. The GetFileStatus method can be used instead to obtain information about a specific file. The first parameter specifies the name of the file and the remaining arguments are passed by reference and will contain information about the file when the method returns.

Dim strFileName As String
Dim nFileLength As Long
Dim strFileDate As String
Dim strFileOwner As String
Dim strFileGroup As String
Dim nFilePerms As Long
Dim bIsDirectory As Boolean
Dim nError As Long

nError = FileTransfer1.GetFileStatus( _
    strFileName, _
    nFileLength, _
    strFileDate, _
    strFileOwner, _
    strFileGroup, _
    nFilePerms, _
    bIsDirectory)

Copyright © 2008 Catalyst Development Corporation. All rights reserved.