Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: WinSCP and file times: old files show as 00:00 time

Thanks for your post. This issue has been added to tracker.
takeos

WinSCP and file times: old files show as 00:00 time

I am testing WinSCP 4.2.9.938 to copy or move the content of some remote FreeBSD FTP server directories to the local Windows (2008 or 7) system.

New files copy fine, whereas old files copy with the correct date, and a time of 00:00. So the time information is lost. It's not even displayed in the Changed column (which only shows the date). I read that this is common with some servers, and that a special parameter may be needed (e.g. to do LIST -T) to get the correct time on files older than 6 months.

How can I do this with WinSCP?

Thanks!

Log follows.

. 2010-10-20 00:13:56.825 --------------------------------------------------------------------------
. 2010-10-20 00:13:56.825 WinSCP Version 4.2.9 (Build 938) (OS 6.0.6002 Service Pack 2)
. 2010-10-20 00:13:56.825 Login time: Wednesday, October 20, 2010 00:13:56
. 2010-10-20 00:13:56.825 --------------------------------------------------------------------------
. 2010-10-20 00:13:56.825 Session name: ssc-ftpsync-5.usernameo.net
. 2010-10-20 00:13:56.825 Host name: ftp.example.com (Port: 21)
. 2010-10-20 00:13:56.825 User name: username (Password: Yes, Key file: No)
. 2010-10-20 00:13:56.825 Tunnel: No
. 2010-10-20 00:13:56.825 Transfer Protocol: FTP
. 2010-10-20 00:13:56.825 Ping type: C, Ping interval: 30 sec; Timeout: 30 sec
. 2010-10-20 00:13:56.825 Proxy: none
. 2010-10-20 00:13:56.825 FTP: FTPS: None; Passive: Yes [Force IP: No]
. 2010-10-20 00:13:56.825 Local directory: X:\local, Remote directory: home, Update: No, Cache: No
. 2010-10-20 00:13:56.825 Cache directory changes: No, Permanent: Yes
. 2010-10-20 00:13:56.825 DST mode: 1
. 2010-10-20 00:13:56.825 --------------------------------------------------------------------------
. 2010-10-20 00:13:56.856 Connecting to ftp.example.com ...
. 2010-10-20 00:13:56.903 Connected with ftp.example.com. Waiting for welcome message...
< 2010-10-20 00:13:56.981 220 FTP Service
> 2010-10-20 00:13:56.981 USER username
< 2010-10-20 00:13:57.074 331 Password required for username.
> 2010-10-20 00:13:57.074 PASS *********
< 2010-10-20 00:13:57.246 230 User username logged in.
> 2010-10-20 00:13:57.246 SYST
< 2010-10-20 00:13:57.293 215 UNIX Type: L8
> 2010-10-20 00:13:57.293 FEAT
< 2010-10-20 00:13:57.355 211-Features:
< 2010-10-20 00:13:57.355 MDTM
< 2010-10-20 00:13:57.355 REST STREAM
< 2010-10-20 00:13:57.355 SIZE
< 2010-10-20 00:13:57.355 211 End
. 2010-10-20 00:13:57.355 Connected
. 2010-10-20 00:13:57.355 --------------------------------------------------------------------------
. 2010-10-20 00:13:57.355 Using FTP protocol.
. 2010-10-20 00:13:57.355 Doing startup conversation with host.
> 2010-10-20 00:13:57.355 PWD
< 2010-10-20 00:13:57.418 257 "/" is current directory.
. 2010-10-20 00:13:57.418 Getting current directory name.
. 2010-10-20 00:13:57.418 Retrieving directory listing...
> 2010-10-20 00:13:57.418 TYPE A
< 2010-10-20 00:13:57.464 200 Type set to A
> 2010-10-20 00:13:57.464 PASV
< 2010-10-20 00:13:57.527 227 Entering Passive Mode (...,...,...,...,117,103).
> 2010-10-20 00:13:57.527 LIST -a
< 2010-10-20 00:13:57.636 150 Opening ASCII mode data connection for file list
< 2010-10-20 00:13:57.683 226 Transfer complete.
. 2010-10-20 00:13:57.698 Directory listing successful
. 2010-10-20 00:13:57.698 Startup conversation with host finished.
. 2010-10-20 00:14:02.285 Changing directory to "testdir".
> 2010-10-20 00:14:02.285 CWD testdir
< 2010-10-20 00:14:02.332 250 CWD command successful
. 2010-10-20 00:14:02.332 Getting current directory name.
> 2010-10-20 00:14:02.332 PWD
< 2010-10-20 00:14:02.394 257 "/testdir" is current directory.
. 2010-10-20 00:14:02.394 Retrieving directory listing...
> 2010-10-20 00:14:02.394 TYPE A
< 2010-10-20 00:14:02.456 200 Type set to A
> 2010-10-20 00:14:02.456 PASV
< 2010-10-20 00:14:02.503 227 Entering Passive Mode (...,...,...,...,117,177).
> 2010-10-20 00:14:02.503 LIST -a
< 2010-10-20 00:14:02.597 150 Opening ASCII mode data connection for file list
. 2010-10-20 00:15:06.791 Timeout detected.
. 2010-10-20 00:15:06.791 Could not retrieve directory listing
* 2010-10-20 00:15:06.791 (ESshFatal) Lost connection.
* 2010-10-20 00:15:06.791 Timeout detected.
* 2010-10-20 00:15:06.791 Could not retrieve directory listing
* 2010-10-20 00:15:06.791 Opening ASCII mode data connection for file list
* 2010-10-20 00:15:06.791 Error listing directory '/testdir'.
* 2010-10-20 00:15:06.791 Error changing directory to 'testdir'.
. 2010-10-20 00:15:11.876 Connecting to ftp.example.com ...
. 2010-10-20 00:15:11.908 Connected with ftp.example.com. Waiting for welcome message...
< 2010-10-20 00:15:11.970 220 FTP Service
> 2010-10-20 00:15:11.970 USER username
< 2010-10-20 00:15:12.032 331 Password required for username.
> 2010-10-20 00:15:12.032 PASS *********
< 2010-10-20 00:15:12.204 230 User username logged in.
> 2010-10-20 00:15:12.204 SYST
< 2010-10-20 00:15:12.235 215 UNIX Type: L8
> 2010-10-20 00:15:12.235 FEAT
< 2010-10-20 00:15:12.282 211-Features:
< 2010-10-20 00:15:12.282 MDTM
< 2010-10-20 00:15:12.282 REST STREAM
< 2010-10-20 00:15:12.282 SIZE
< 2010-10-20 00:15:12.282 211 End
. 2010-10-20 00:15:12.282 Connected
. 2010-10-20 00:15:12.282 Doing startup conversation with host.
. 2010-10-20 00:15:12.298 Changing directory to "/testdir".
. 2010-10-20 00:15:12.298 Synchronizing current directory "/testdir".
> 2010-10-20 00:15:12.298 CWD /testdir
< 2010-10-20 00:15:12.329 250 CWD command successful
> 2010-10-20 00:15:12.329 CWD /testdir
< 2010-10-20 00:15:12.376 250 CWD command successful
. 2010-10-20 00:15:12.376 Getting current directory name.
> 2010-10-20 00:15:12.376 PWD
< 2010-10-20 00:15:12.422 257 "/testdir" is current directory.
. 2010-10-20 00:15:12.422 Retrieving directory listing...
> 2010-10-20 00:15:12.422 TYPE A
< 2010-10-20 00:15:12.469 200 Type set to A
> 2010-10-20 00:15:12.469 PASV
< 2010-10-20 00:15:12.516 227 Entering Passive Mode (...,...,...,...,117,160).
> 2010-10-20 00:15:12.516 LIST -a
< 2010-10-20 00:15:12.594 150 Opening ASCII mode data connection for file list
< 2010-10-20 00:15:55.978 226 Transfer complete.
. 2010-10-20 00:15:55.993 Directory listing successful
. 2010-10-20 00:16:02.717 Startup conversation with host finished.
. 2010-10-20 00:16:15.883 File: "/testdir/test.jpg"
. 2010-10-20 00:16:15.899 Copying "/testdir/test.jpg" to local directory started.
. 2010-10-20 00:16:15.899 Binary transfer mode selected.
. 2010-10-20 00:16:15.899 Starting download of /testdir/test.jpg
> 2010-10-20 00:16:15.899 TYPE I
< 2010-10-20 00:16:15.961 200 Type set to I
> 2010-10-20 00:16:15.961 PASV
< 2010-10-20 00:16:16.258 227 Entering Passive Mode (...,...,...,...,117,71).
> 2010-10-20 00:16:16.258 RETR test.jpg
< 2010-10-20 00:16:16.367 150 Opening BINARY mode data connection for test.jpg (42161 bytes)
< 2010-10-20 00:16:16.788 226 Transfer complete.
. 2010-10-20 00:16:16.788 Download successful