Hi, I would like to pull the timestamp of a remote file via FTPS.

Is there a way to do this with Rebex? I saw a post about SFTP and some sFtpAttributes, but couldn't find anything for FTPS.

asked 26 Jan, 16:01

dm3281's gravatar image

dm3281
191
accept rate: 0%


Hello,

please use the GetFileDateTime() method of the Ftp class to get the modification date and time of the specified remote file, e.g.

// connect and login...
Ftp ftp = new Ftp();
ftp.Connect(...);           
ftp.Login(...);

// get the modification datetime
DateTime dt = ftp.GetFileDateTime("fileName");

The GetFileDateTime method represents the FTP MDTM command. Please note the MDTM command was not defined by the original RFC, but it has been widely supported for a number of years. And also please note some servers return times in their local time zones, some use GMT.

link

answered 26 Jan, 16:40

Tom%C3%A1%C5%A1%20Knopp's gravatar image

Tomáš Knopp ♦♦
15
accept rate: 0%

edited 26 Jan, 16:48

Lukas%20Matyska's gravatar image

Lukas Matyska ♦♦
78217

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×13

Asked: 26 Jan, 16:01

Seen: 59 times

Last updated: 26 Jan, 16:48