Topic "Count files in a specific folder in remote server"

Author Message
Indira

Guest


Hi,

Please help me if there is a command in winscp which would count the number of files in a particular folder in remote server.
I am able to just see the files using "ls".

Thanks in advance.

Indira
Advertisements
Maaahcel

Guest


I don't find any function - too.

Worse luck!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25510
Location: Prague, Czechia
You can see number of the files on status bar below the panel.
SAC7c

Guest


martin wrote:
You can see number of the files on status bar below the panel.


How would you do this in a script, as a pre-check to other commands? For example:

count(fil*.zip)>&Available
if (Avaiable = 0)
Exit
Else
Start transfer

Thanks.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25510
Location: Prague, Czechia
SAC7c wrote:
How would you do this in a script, as a pre-check to other commands? For example:

count(fil*.zip)>&Available
if (Avaiable = 0)
Exit
Else
Start transfer

Thanks.

Please read documentation:
https://winscp.net/eng/docs/script_checking_file_existence

If that does not help, come back.
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