...
Syntax
Wiki Markup |
*dir* _logical\-name_\[=_directory_\]
Description
...
Parameters
...
cellspacing | 0 |
---|
style | text-align: left; width: 504pt; |
---|
class | Table_with_Header |
---|
...
style | background-color: #F0F0F0; border-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: middle; width: 144pt; |
---|
...
...
...
...
style | border-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top; |
---|
...
...
...
style | border-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top; |
---|
Logical name of the transfer server to execute the dir command. |
...
...
...
...
style | border-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top; |
---|
Directory to list. This can be a relative path. |
Examples
...
To list the contents of the current directory:
Panel |
---|
Html bobswift |
<pre>
dir remotesys
</pre>
|
To list the contents of the
/home/max/tmp directory:
Panel |
html-bobswift |
---|
<pre>
dir remotesys=/home/max/tmp
</pre>
|
Info |
---|
|
Html bobswift |
<pre>
dir remotesys=C:\home\max\tmp
</pre>
|
To list the contents of the relative path
tmp directory:
Panel |
html-bobswift |
---|
<pre>
dir remotesys=tmp
</pre>
|
(The output will be the same as
/home/max/tmp assuming that the current working directory is
/home/max.)
...
If the dir argument results in a "not found" condition, the dir command ends with _rc = 8 and _lastrc = 0.
Panel |
---|
Html bobswift |
<pre>
dir s=/tmp/notfound
s: Listing for: /tmp/notfound
s: ---------- Error Analysis Report -- Begin -----------------
s: Message.....: No such file or directory (Path name: /tmp/notfound)
s: Function....: stat
s: Error Type..: SYSTEM Error Code..: 2, X'2'
s: Source......: udmfiou.c Line........: 1818
s: Date........: 2011.12.20 Time........: 14:08:04
s: ---------- Error Analysis Report -- End -------------------
s: Failed to retrieve full file listing for file spec, '/tmp/notfound', and current path, '/home/john'
</pre>
|
This results in _rc = 8 and _lastrc = 0.
In the instance where a wild card is used, finding no files to return results in _rc = 0 and _lastrc = 0.
Panel |
---|
Html bobswift |
<pre> dir s=/tmp/notfound*
s: Listing for: /tmp/notfound*
</pre>
|
This results in _rc = 0 and _lastrc = 0 and no files listed.
...
The following is a sample dir command output:
Panel |
html-bobswift |
---|
<pre>
local: Listing for: /tmp
local: 2011-08-18 15:38:25 directory 86016 .
local: 2009-11-12 04:47:03 directory 544 ..
local: 2011-08-18 15:34:51 file 11748 ivp.syslog.log
local: 2011-08-12 01:50:07 directory 8192 PROD.UNV.UNVDB
local: 2011-08-12 01:50:07 external 6 UBROKER.STC02652.21D038B2.UCSCMP00.UCMSRV
local: 2011-08-12 01:50:07 FIFO 0 ubroker-prod-monitor
local: 2011-08-12 01:50:07 character 0 xps-2C92765F-50331656.ipc
</pre>
|
Each file type is identified as:
...