Keep file-modified-date/time on upload?

This forum is not monitored by the SmartFTP staff. To contact technical support see KB: How to request technical support.
jul17pri
Posts: 3
Joined: Fri Jan 02, 2004 4:01 pm

Keep file-modified-date/time on upload?

Post by jul17pri » Fri Jan 02, 2004 4:16 pm

How to preserve files' modified-date/time on upload?

The 'Transfer/Files/Keep File Time' option only seems to affect downloads.

I'm uploading to Fasthost.co.uk's Matrix FTP server which allegedly supports the MDTM command.

Thanks

mb
Posts: 12029
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

Re: Keep file-modified-date/time on upload?

Post by mb » Fri Jan 09, 2004 1:44 am

MDTM is not implemented in SmartFTP to change the file time of the remote file. The reason is that most FTP servers don't follow the RFC and therefore the syntax/behavior of the MDTM command is inconsistent.

jul17pri
Posts: 3
Joined: Fri Jan 02, 2004 4:01 pm

Re: Keep file-modified-date/time on upload?

Post by jul17pri » Fri Jan 09, 2004 8:01 am

Hmmmm. I haven't read the RFC in detail but my understanding is that FTP software producers began implementing MDTM before the RFC was finalised andt hat's where the problems started. e.g. the command is ambiguous:

MDTM filename<SPACE>time

doesn't work if the filename contains a space.

The reason they implemented it prematurely was that customers (like me) wanted it. Your main competition, FTP Voyager and WS_FTP Pro implement it.

Why not implement it in such a way that it works with the FTP servers that you have access to, and give users the option to switch it on/off?

If you would like to add the proprietory FTP server of FastHosts www.Fasthost.co.uk Matrix FTP to your list of test servers then I can make an account available to you.

Thanks
Julian
www.inCharge.co.uk

mwhitlock
Posts: 8
Joined: Tue Apr 13, 2004 8:23 am

Re: Keep file-modified-date/time on upload?

Post by mwhitlock » Tue Apr 13, 2004 8:52 am

Hello everyone!

I am the author of SlimFTPd, a somewhat popular FTP server for Windows with a very small footprint.

SlimFTPd supports setting of file timestamps through use of the MDTM command. This capability, though not presently allowed by the existing RFC, is also supported in many of the other popular FTP servers out there. I know of several FTP clients which take advantage of this capability as well.

However, SmartFTP, my FTP client of choice 8), does not. I would really like to see this option added. It would be a very simple addition. Add a checkbox to the options page TransferFiles in the Post Transfer Action group for "Keep File Time" on Upload.

Here is how this unofficial extension to MDTM works in every case where I have seen it implemented:

Code: Select all

MDTM<sp>YYYYMMDDHHMMSS<sp>filename
Just for reference/amusement, here is how the as-of-yet unreleased SlimFTPd 4.0 decides what to do when it sees the MDTM command. Other servers probably do something similar.
  • foobar" and the other is named "foobar" and you are trying to set the modification timestamp of the latter to the exact same timestamp as in the former's file name. This would in practice never occur, but if it did, SlimFTPd would follow the RFC spec and return the modified date of the former file rather than altering the modified date of the latter file.

    In all other cases, this usage of MDTM is completely acceptable and unambiguous. I would strongly encourage the developers of SmartFTP to add this useful and simple feature.

    Thanks for reading and have a great day!

mb
Posts: 12029
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

Re: Keep file-modified-date/time on upload?

Post by mb » Tue Apr 13, 2004 9:22 am

Thank you.

We will consider adding this feature.

mwhitlock
Posts: 8
Joined: Tue Apr 13, 2004 8:23 am

Re: Keep file-modified-date/time on upload?

Post by mwhitlock » Tue Apr 13, 2004 9:45 am

Wow, quick response! Thanks for considering the addition.

By the by, I have been working night and day on SlimFTPd 4.0 and hope to release a working beta publicly very soon. SlimFTPd 4.0 already supports FEAT, OPTS, SIZE, MDTM, LANG, and UTF8, and will soon support MLSD and MLST, too, hopefully making it one of the most feature-advanced and current FTP servers out there. I use SmartFTP exclusively for testing it during development, so you know when I release it, it will work perfectly with SmartFTP.

mb
Posts: 12029
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

Re: Keep file-modified-date/time on upload?

Post by mb » Tue Apr 13, 2004 11:49 am

That sounds great. Hope your release is ready soon.

If you have a beta tester / announcement list please add one of our email addresses to the list.

Thanks
-Mat

mb
Posts: 12029
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

Re: Keep file-modified-date/time on upload?

Post by mb » Mon Apr 26, 2004 6:46 am

Implementation is almost done.

We need a list of FTP servers (including the FEAT reply) supporting the MDTM command to set the date/time of the remote file.

Please post all servers and don't forget the FEAT reply which support the MDTM command.

Thank you

mb
Posts: 12029
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

Re: Keep file-modified-date/time on upload?

Post by mb » Mon Apr 26, 2004 8:22 am

Check out the latest build
https://www.smartftp.com/download

juanfer
Posts: 2
Joined: Fri May 28, 2004 2:56 pm

Re: Keep file-modified-date/time on upload?

Post by juanfer » Fri May 28, 2004 3:09 pm

Hi, I'm new on SmartFTP, but the first thing i notticed was that it didn't keep file time on upload. I come from FTP Voyager, which makes it fine. After looking allaround I found this forum and finally tested your last build that seems to work fine except because it puts server file time 2 hours less than local file time... this is: local=15:53, server=13:53, for example. This happens on every uploaded file.

Post Reply