Differences

This shows you the differences between the selected revisions of the page.

scriptcommand_ls 2014-06-10 scriptcommand_ls 2020-10-16 (current)
Line 1: Line 1:
-====== ls ======+====== ls command ======
Lists the contents of specified remote directory. Lists the contents of specified remote directory.
Line 6: Line 6:
  ls [ <directory> ]/[ <wildcard> ]   ls [ <directory> ]/[ <wildcard> ]
-===== Remarks =====+===== [[remarks]] Remarks =====
Lists the contents of specified remote directory. If ''directory'' is not specified, lists working directory. When ''[[file_mask|wildcard]]'' ((Only single include mask can be specified.)) is specified, it is treated as set of files to list. Otherwise, all files are listed. Lists the contents of specified remote directory. If ''directory'' is not specified, lists working directory. When ''[[file_mask|wildcard]]'' ((Only single include mask can be specified.)) is specified, it is treated as set of files to list. Otherwise, all files are listed.
Alias: ''dir'' Alias: ''dir''
 +
 +Effective [[scriptcommand_option|options]]: ''[[scriptcommand_option#failonnomatch|failonnomatch]]''
XML log element: ''[[logging_xml#ls|ls]]'' XML log element: ''[[logging_xml#ls|ls]]''
-===== Examples =====+===== [[examples]] Examples =====
<code winscp> <code winscp>
ls *.html ls *.html
Line 23: Line 25:
<code winscp> <code winscp>
ls ls
 +</code>
 +<code winscp>
 +ls /home/martin/*.html
</code> </code>
-===== Converting to .NET Assembly =====+===== [[net]] Converting to .NET Assembly =====
When [[library_from_script|converting script to .NET Assembly]], map ''ls'' command to ''[[library_session_listdirectory|Session.ListDirectory]]'' method and print returned ''[[library_remotedirectoryinfo|RemoteDirectoryInfo]]'' in your preferred format. When [[library_from_script|converting script to .NET Assembly]], map ''ls'' command to ''[[library_session_listdirectory|Session.ListDirectory]]'' method and print returned ''[[library_remotedirectoryinfo|RemoteDirectoryInfo]]'' in your preferred format.

Last modified: by martin