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

Author Message
takeos
[View user's profile]

Joined: 2010-10-20
Posts: 5
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
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Thanks for your post. This issue has been added to tracker.
_________________
Martin Prikryl
takeos
[View user's profile]

Joined: 2010-10-20
Posts: 5
prikryl wrote:
Thanks for your post. This issue has been added to tracker.


Thanks. It should be possible to auto-recognize such servers. For example here is a description applicable to FTP Voyager:

http://forums.fedoraforum.org/showthread.php?t=78755
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License