Topic "No directory listing on some servers"

Author Message
orb

Guest


When I connect to some servers I sometime don't get directory listing, as I understand it is happening because these servers don't support --full-time option on ls command and WinSCP
can't detect that. This is log when I get directory listing:
. 2009-01-30 02:18:32.046 Listing current directory.
> 2009-01-30 02:18:32.046 ls -la --full-time ; echo "WinSCP: this is end-of-file:$?"
! 2009-01-30 02:18:32.171 ls: illegal option -- -
! 2009-01-30 02:18:32.281 usage: ls [-ABCFGHLPRTWZabcdfghiklmnoqrstuwx1] [file ...]
< 2009-01-30 02:18:32.281 WinSCP: this is end-of-file:1
* 2009-01-30 02:18:32.281 (ETerminal) Command 'ls -la --full-time'
* 2009-01-30 02:18:32.281 failed with return code 1 and error message
* 2009-01-30 02:18:32.281 ls: illegal option -- -
* 2009-01-30 02:18:32.281 usage: ls [-ABCFGHLPRTWZabcdfghiklmnoqrstuwx1] [file ...].
. 2009-01-30 02:18:32.281 Directory listing with --full-time failed, try again regular listing.
. 2009-01-30 02:18:32.281 Listing current directory.
> 2009-01-30 02:18:32.281 ls -la ; echo "WinSCP: this is end-of-file:$?"
< 2009-01-30 02:18:32.437 total 10840

This is log when I don't get listing on same server:
. 2009-01-30 02:18:10.765 Listing current directory.
> 2009-01-30 02:18:10.765 ls -la --full-time ; echo "WinSCP: this is end-of-file:$?"
< 2009-01-30 02:18:11.515 WinSCP: this is end-of-file:1
. 2009-01-30 02:18:11.515 Listing file "..".
> 2009-01-30 02:18:11.515 ls -la -d ".." ; echo "WinSCP: this is end-of-file:$?"
! 2009-01-30 02:18:11.531 ls: illegal option -- -
! 2009-01-30 02:18:11.531 usage: ls [-ABCFGHLPRTWZabcdfghiklmnoqrstuwx1] [file ...]
< 2009-01-30 02:18:11.796 drws--x--x 887 root wheel 16896 Dec 17 04:44 ..
< 2009-01-30 02:18:11.796 WinSCP: this is end-of-file:0
. 2009-01-30 02:18:11.796 Directory listing with --full-time succeed, next time all errors during directory listing will be displayed immediatelly.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
Next version of WinSCP will allow you to turn off using --fule-time. However I'm not sure if it helps in your case.
BTW, have you tried using SFTP?
_________________
Martin Prikryl
orb

Guest


SFTP works fine, I also tried disabling "Try to get full timestamp" option and it works too, but still, when executing shell commands that results with error I sometime get strange error messages, like "Error getting name of current remote directory" instead of actual error.
Also, when I connect to that server using PuTTY and manually executing
ls -la --full-time ; echo "WinSCP: this is end-of-file:$?"
I always get output in right order
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
May I get a test account on your server?
_________________
Martin Prikryl
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