Home Forums .NET libraries Xceed SFTP/FTP for .NET Get TimeStamp of Remote Files

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #20799 |

    How can I get the TimeStamp of the files located on a remote host?

    Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by George (had 2484 views)

    User (Old forums)
    Member
    Post count: 23064

    You can use the FtpClient.GetFolderContents() method to do this.

    e.g
    <i>
    FtpItemInfoList list = FtpClient.GetFolderContents();
    foreach(FtpItemInfo item In list.Item )
    {
    Date date = item.DateTime;
    }
    </i>

    If you want the time stamp on a specific file only, you can use the remoteFileMask parameter on the overloaded GetFolderContents method, and specify the file you want to retrieve.

    Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by André (had 3268 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.