Count files in a specific folder in remote server

Advertisement

Indira
Guest

Count files in a specific folder in remote server

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
27,226
Location:
Prague, Czechia

Re: This is the Question???

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

Reply with quote

SAC7c
Guest

Re: This is the Question???

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.

Reply with quote

Advertisement

You can post new topics in this forum