Show files in tree structure

Advertisement

HALLU
Joined:
Posts:
1
Location:
Denmark

Show files in tree structure

Hi, I'm new to WinSCP, so please just redirect me to the correct answer if this is already an implemented feature. I'm making this post because I tried to find a solution but couldn't quite find the right thing for me.

I would like to be able to show files in the tree structure in the explorer interface, and also hide the remote file view. This way I could make the window tall and slim, which would be very nice to have next to your editor on a widescreen monitor.

The files would be in the tree for the folders that were opened, which would be marked by an arrow pointing to the right or downwards, like in this tree for instance: https://imgur.com/MKPYPYd (taken from notepad++)

Here is a screenshot of what I'd like to do: https://imgur.com/mWRpB2d (of course with the feature implemented)

Would this be possible with the current build? If not, I would really like this to be implemented.

Sorry if I rambled, English is not my native language.

HALLU

Reply with quote

Advertisement

Eric levinson
Guest

Is there any other way to show a recursive listing of all files and folders in a specific site?

As a followup to this question – I need a recursive listing of all files and folders in the SFTP site I am accessing.

Graphical is not needed.

Any help would be greatly appreciated!

Eric

Reply with quote

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

Re: Is there any other way to show a recursive listing of all files and folders in a specific site?

@Eric levinson: Can you please elaborate? What do you need it for? How would you use it? If graphical is not needed, so what do you want to obtain exactly? Like text listing of all files?

Do you know that you can get listing of all files using the Find function?
https://winscp.net/eng/docs/ui_find
And you can copy the listing to the clipboard.

Reply with quote

Eric Levinson
Guest

Re: Is there any other way to show a recursive listing of all files and folders in a specific site?

Hi @martin. Thanks for your quick reply.
The goal is to verify that files I have transferred via WinSCP made it 100%
Its for the remote site - so FIND won't work unless I can put username@sftp.host.com and log in with Find - I don't think this is possible.

There's an ls -R option in SFTP - however it looks like the server side disabled it so the command is not recognized.

So what I am looking for is a manual recursion that lists out all the files, their sizes and path names (similar to ls -laR) command, but on the remote side, not the local side of the FTP.

So essentially the client would need to recursively traverse the remote filesystem and dump out all the names, filesizes, permissions, through all directories on the remote system.

In a way I see WSFTP does this already with all the directories and subdirectories and displays them in the GUI - it just doesn't go to the file depth until I click on a folder.

If anyone knows of any tool available to do this - that would be great!

Thanks!

Reply with quote

Advertisement

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

Re: Is there any other way to show a recursive listing of all files and folders in a specific site?

Eric Levinson wrote:

It's for the remote site - so FIND won't work unless I can put username@sftp.host.com and log in with Find - I don't think this is possible.
Sorry, I do not follow. What's the problem? You can login with WinSCP GUI to username@sftp.host.com and use the Find command to list all your files. I do not see how does it NOT cover your requirements.

There's an ls -R option in SFTP - however it looks like the server side disabled it so the command is not recognized.
In what "SFTP"? Do you mean OpenSSH sftp command-line client? It does NOT have ls -R. See https://man.openbsd.org/sftp#ls.

So what I am looking for is a manual recursion that lists out all the files, their sizes and path names (similar to ls -laR) command, but on the remote side, not the local side of the FTP.
Again, that's what WinSCP Find GUI command can do.

Or, if you want to automate the listing. option, you can use Session.EnumerateRemoteFiles method of WinSCP .NET assembly. E.g. from a PowerShell script. You can start with this example.
https://winscp.net/eng/docs/library_example_recursive_search_text
Just remove the "download and grep" part.
And add listing of all file attributes. For that see
https://winscp.net/eng/docs/library_session_listdirectory#powershell

Reply with quote

Advertisement

You can post new topics in this forum