Some folders not visible in GUI or via script

Advertisement

radams@windbercare.org
Joined:
Posts:
4

Some folders not visible in GUI or via script

I am accessing a vendor's SFTP site. The provide a GUI in which I can see all of the folders. My goal is to use scripting to download and upload files instead of doing it manually via their GUI. When I log into their site using SCP GUI, I can see some of the folders, but not all. I have tried with both the Commander and Explorer interfaces. (This has never worked for me.) Same when I script. I asked the vendor and they don't think it is on their side. They said all folders are set up the same. What could I look at or ask them to look at? More details below:

Version of WinSCP: 5.21.2
Windows 10
I get no errors when using the GUI, the only error I get with the script is "No such file or directory" when I try to change to the directory. I will attach a log file.

Thank you!

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,469
Location:
Prague, Czechia

Re: Some folders not visible in GUI or via script

Can you post a session log of the GUI session that fails to display some folder? And give us a name of that folder? Can you see that folder in any other SFTP client?

Reply with quote

radams@windbercare.org
Joined:
Posts:
4

Re: Some folders not visible in GUI or via script

I'm uploading a session log. I'm also uploading Capture.jpg. This shows a screenshot of the folders I can see when I access the SFTP server via a browser. When I use SCP I can't see the MM folder or the RPTSCHED folder. I also tried FileZilla and it behaves the same as SCP. But the vendor assures me the folders are all set up the same. Thanks for your input.

Description: Screen shot of folders available via browser.

Capture.JPG

Description: Session log of attempt to access MM folder.

Reply with quote

martin
Site Admin
martin avatar

Re: Some folders not visible in GUI or via script

I was asking for "session log of the GUI session that fails to display some [MM] folder". Though if FileZilla does not display the folder either, then it's most likely a problem on the server-side anyway. That some web-interface displays the folder is not really relevant.

Reply with quote

radams@windbercare.org
Joined:
Posts:
4

Re: Some folders not visible in GUI or via script

I agree it appears to be server-side, but that vendor is not being helpful. They have asked me:

Is it possible to force that software to resync the sftp?

Is this possible? Thanks.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,469
Location:
Prague, Czechia

Re: Some folders not visible in GUI or via script

What does it mean "resync the sftp"? Maybe they believe that WinSCP caches the directory contents. It does within one session, but I assume you have connected few times already and the folder is still not there, right? And the script log clearly shows the server claims the folder is not there (assuming the /MM path it correct – Is the folder in the root, right? – GUI log would be better for confirm that).
Double check that you are in the right place when looking for the subfolder.
See also https://winscp.net/eng/docs/faq_script_vs_gui#paths

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,469
Location:
Prague, Czechia

Re: Some folders not visible in GUI or via script

< 2022-09-01 14:29:54.640 Type: SSH_FXP_NAME, Size: 538, Number: 2828
< 2022-09-01 14:29:54.640 68,00,00,0B,0C,00,00,00,06,00,00,00,03,41,42,53,00,00,03,BD,02,00,00,00,00,
The highlighted part of the response from the server shows that it returned 6 entries. And 6 entries did WinSCP decode from the response:
. 2022-09-01 14:29:54.640 ABS;D;0;2021-12-02T18:51:48.000Z;4;"user" [0];"group" [0];rwxrwxrwx;1
. 2022-09-01 14:29:54.640 BAR;D;0;2021-09-15T17:24:57.000Z;4;"user" [0];"group" [0];rwxrwxrwx;1
. 2022-09-01 14:29:54.640 BBK;D;0;2022-06-24T14:50:48.000Z;4;"user" [0];"group" [0];rwxrwxrwx;1
. 2022-09-01 14:29:54.640 ECM;D;0;2022-07-21T16:30:51.000Z;4;"user" [0];"group" [0];rwxrwxrwx;1
. 2022-09-01 14:29:54.640 ForwardAdvantage;D;0;2021-08-04T14:22:52.000Z;4;"user" [0];"group" [0];rwxrwxrwx;1
. 2022-09-01 14:29:54.640 HomeCare;D;0;2021-12-09T17:26:22.000Z;4;"user" [0];"group" [0];rwxrwxrwx;1
And that's it. There's nothing more. No MM. The server does not return it.

The server uses SFTP version 6, which is rarely used. Many clients do not support it. So it's quite common that implementation in servers is buggy, as it is not well tested. Sometimes, forcing lower version (3) can help. Try it. But I do not really expect it to help, as you have same problems with FileZilla. And FileZilla does support version 3 only.

Reply with quote

Advertisement

You can post new topics in this forum